1
1
import { code , CodeBlock , CodeBlockBody , CodeBlockCode , CodeBlockCopyButton } from "@/code-block" ;
2
2
import { PasswordInput } from "@/password-input" ;
3
- import { Table , TableBody , TableHead , TableHeader , TableRow } from "@/table" ;
3
+ import { Table , TableBody , TableCell , TableHead , TableHeader , TableRow } from "@/table" ;
4
4
import type { HeadersFunction , MetaFunction } from "@remix-run/node" ;
5
5
import { Example } from "~/components/example" ;
6
6
@@ -24,17 +24,15 @@ export default function Page() {
24
24
< p className = "mt-4 text-xl text-gray-600" > Fundamental component for password inputs.</ p >
25
25
26
26
< Example className = "mt-4 flex-col gap-4" >
27
- < PasswordInput className = "max-w-64" placeholder = "Enter a username" />
28
- < PasswordInput className = "max-w-64" placeholder = "Enter a username" aria-invalid />
27
+ < PasswordInput className = "max-w-64" />
28
+ < PasswordInput className = "max-w-64" aria-invalid />
29
29
</ Example >
30
30
< CodeBlock className = "rounded-b-lg rounded-t-none" >
31
31
< CodeBlockBody >
32
32
< CodeBlockCopyButton />
33
33
< CodeBlockCode language = "tsx" > { code `
34
- <>
35
- <PasswordInput placeholder="Enter a username" />
36
- <PasswordInput placeholder="Enter a username" aria-invalid />
37
- </>
34
+ <PasswordInput />
35
+ <PasswordInput aria-invalid />
38
36
` } </ CodeBlockCode >
39
37
</ CodeBlockBody >
40
38
</ CodeBlock >
@@ -50,14 +48,11 @@ export default function Page() {
50
48
</ TableRow >
51
49
</ TableHeader >
52
50
< TableBody className = "font-mono text-xs text-gray-600" >
53
- { /* <TableRow>
54
- <TableCell className="align-top font-medium">state</TableCell>
55
- <TableCell className="space-y-2 align-top text-xs">
56
- <p>default</p>
57
- <p>danger</p>
58
- </TableCell>
59
- <TableCell className="align-top">default</TableCell>
60
- </TableRow> */ }
51
+ < TableRow >
52
+ < TableCell className = "align-top font-medium" > aria-invalid</ TableCell >
53
+ < TableCell className = "space-y-2 align-top text-xs" > boolean</ TableCell >
54
+ < TableCell className = "align-top" > false</ TableCell >
55
+ </ TableRow >
61
56
</ TableBody >
62
57
</ Table >
63
58
</ div >
0 commit comments