Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c06760f

Browse files
committedFeb 8, 2024
Restore API table
1 parent 91efc46 commit c06760f

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed
 

‎app/routes/components.input.tsx

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

@@ -31,10 +31,8 @@ export default function Page() {
3131
<CodeBlockBody>
3232
<CodeBlockCopyButton />
3333
<CodeBlockCode language="tsx">{code`
34-
<>
35-
<Input placeholder="Enter a username" />
36-
<Input placeholder="Enter a username" aria-invalid />
37-
</>
34+
<Input placeholder="Enter a username" />
35+
<Input placeholder="Enter a username" aria-invalid />
3836
`}</CodeBlockCode>
3937
</CodeBlockBody>
4038
</CodeBlock>
@@ -50,14 +48,15 @@ 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>
51+
<TableRow>
52+
<TableCell className="align-top font-medium">aria-invalid</TableCell>
5553
<TableCell className="space-y-2 align-top text-xs">
56-
<p>default</p>
57-
<p>danger</p>
54+
boolean
55+
</TableCell>
56+
<TableCell className="align-top">
57+
false
5858
</TableCell>
59-
<TableCell className="align-top">default</TableCell>
60-
</TableRow> */}
59+
</TableRow>
6160
</TableBody>
6261
</Table>
6362
</div>

‎app/routes/components.text-area.tsx

+13-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@ export default function Page() {
3333
<CodeBlockBody>
3434
<CodeBlockCopyButton />
3535
<CodeBlockCode language="tsx">{code`
36-
<>
3736
<TextArea placeholder="Enter a username" />
38-
<TextArea className="max-w-64" appearance="monospaced" placeholder="Enter a username" />
37+
<TextArea appearance="monospaced" placeholder="Enter a username" />
3938
<TextArea placeholder="Enter a username" aria-invalid />
40-
</>
4139
`}</CodeBlockCode>
4240
</CodeBlockBody>
4341
</CodeBlock>
@@ -56,10 +54,20 @@ export default function Page() {
5654
<TableRow>
5755
<TableCell className="align-top font-medium">appearance</TableCell>
5856
<TableCell className="space-y-2 align-top text-xs">
59-
<InlineCode>&quot;monospaced&quot; | undefined</InlineCode>
57+
<p>monospaced</p>
58+
<p>undefined</p>
6059
</TableCell>
6160
<TableCell className="align-top">
62-
<InlineCode>undefined</InlineCode>
61+
undefined
62+
</TableCell>
63+
</TableRow>
64+
<TableRow>
65+
<TableCell className="align-top font-medium">aria-invalid</TableCell>
66+
<TableCell className="space-y-2 align-top text-xs">
67+
boolean
68+
</TableCell>
69+
<TableCell className="align-top">
70+
false
6371
</TableCell>
6472
</TableRow>
6573
</TableBody>

0 commit comments

Comments
 (0)
Please sign in to comment.