Skip to content

Commit 50b69b0

Browse files
committed
Simplify examples
1 parent 9f8636c commit 50b69b0

File tree

2 files changed

+4
-53
lines changed

2 files changed

+4
-53
lines changed

app/routes/components.input.tsx

+3-52
Original file line numberDiff line numberDiff line change
@@ -26,58 +26,9 @@ export default function Page() {
2626
<h1 className="text-5xl font-medium">Input</h1>
2727
<p className="mt-4 text-xl text-gray-600">Fundamental component for inputs.</p>
2828

29-
<Example className="mt-4 flex-col gap-6">
30-
<div className="flex gap-2">
31-
<Select>
32-
<SelectTrigger className="w-[180px]">
33-
<SelectValue placeholder="Select a fruit" />
34-
</SelectTrigger>
35-
<SelectContent>
36-
<SelectGroup>
37-
<SelectLabel>Fruits</SelectLabel>
38-
<SelectItem value="apple">Apple</SelectItem>
39-
</SelectGroup>
40-
</SelectContent>
41-
</Select>
42-
<Input placeholder="Enter a username" />
43-
<Button priority="muted" appearance="outline" type="button">
44-
Submit
45-
</Button>
46-
</div>
47-
<div className="flex gap-2">
48-
<Select>
49-
<SelectTrigger className="w-[180px]">
50-
<SelectValue placeholder="Select" />
51-
</SelectTrigger>
52-
<SelectContent>
53-
<SelectGroup>
54-
<SelectLabel>Fruits</SelectLabel>
55-
<SelectItem value="apple">Apple</SelectItem>
56-
</SelectGroup>
57-
</SelectContent>
58-
</Select>
59-
<Input placeholder="Enter a username" state="danger" />
60-
<Button priority="danger" appearance="outline" type="button">
61-
Submit
62-
</Button>
63-
</div>
64-
<div className="flex gap-2">
65-
<Select disabled>
66-
<SelectTrigger className="w-[180px]">
67-
<SelectValue placeholder="Select" />
68-
</SelectTrigger>
69-
<SelectContent>
70-
<SelectGroup>
71-
<SelectLabel>Fruits</SelectLabel>
72-
<SelectItem value="apple">Apple</SelectItem>
73-
</SelectGroup>
74-
</SelectContent>
75-
</Select>
76-
<Input placeholder="Enter a username" disabled />
77-
<Button priority="muted" appearance="outline" type="button" disabled>
78-
Submit
79-
</Button>
80-
</div>
29+
<Example className="mt-4 flex-col gap-4">
30+
<Input className="max-w-64" placeholder="Enter a username" />
31+
<Input className="max-w-64" placeholder="Enter a username" state="danger" />
8132
</Example>
8233
<CodeBlock className="rounded-b-lg rounded-t-none">
8334
<CodeBlockBody>

app/routes/components.select.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function Page() {
2727

2828
<Example className="mt-4">
2929
<Select>
30-
<SelectTrigger className="w-[180px]">
30+
<SelectTrigger className="max-w-64">
3131
<SelectValue placeholder="Select a fruit" />
3232
</SelectTrigger>
3333
<SelectContent>

0 commit comments

Comments
 (0)