aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/page-form.tsx
diff options
context:
space:
mode:
authorshu <nvcsadjkojf@outlook.com>2026-09-07 15:48:36 +0800
committershu <nvcsadjkojf@outlook.com>2026-09-07 15:48:36 +0800
commit481402e09fe760634b826b09e302e2e1bfec88b1 (patch)
tree9b55025bfcd6acd2c5d795f057de27028b422603 /src/page-form.tsx
feat: initialize React Spectrum template with layouts and showcases
Diffstat (limited to 'src/page-form.tsx')
-rw-r--r--src/page-form.tsx18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/page-form.tsx b/src/page-form.tsx
new file mode 100644
index 0000000..76e134b
--- /dev/null
+++ b/src/page-form.tsx
@@ -0,0 +1,18 @@
+import { lazy, Suspense } from 'react'
+import styles from './page-form.module.css'
+
+const FormExamples = lazy(() => import('./components/form-examples/form-examples'))
+
+export default function FormPage() {
+ return (
+ <div className={styles.page}>
+ <header className={styles.header}>
+ <h1>表单</h1>
+ <p>Spectrum 表单控件、交互状态与数据校验示例。</p>
+ </header>
+ <Suspense fallback={<p role="status">正在加载表单…</p>}>
+ <FormExamples />
+ </Suspense>
+ </div>
+ )
+}