Skip to content

Commit 81c9bdc

Browse files
committed
Password documentation
1 parent c06760f commit 81c9bdc

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

app/routes/components.password-input.tsx

+10-15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { code, CodeBlock, CodeBlockBody, CodeBlockCode, CodeBlockCopyButton } from "@/code-block";
22
import { PasswordInput } from "@/password-input";
3-
import { Table, TableBody, TableHead, TableHeader, TableRow } from "@/table";
3+
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/table";
44
import type { HeadersFunction, MetaFunction } from "@remix-run/node";
55
import { Example } from "~/components/example";
66

@@ -24,17 +24,15 @@ export default function Page() {
2424
<p className="mt-4 text-xl text-gray-600">Fundamental component for password inputs.</p>
2525

2626
<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 />
2929
</Example>
3030
<CodeBlock className="rounded-b-lg rounded-t-none">
3131
<CodeBlockBody>
3232
<CodeBlockCopyButton />
3333
<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 />
3836
`}</CodeBlockCode>
3937
</CodeBlockBody>
4038
</CodeBlock>
@@ -50,14 +48,11 @@ export default function Page() {
5048
</TableRow>
5149
</TableHeader>
5250
<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>
6156
</TableBody>
6257
</Table>
6358
</div>

0 commit comments

Comments
 (0)