File tree Expand file tree Collapse file tree 2 files changed +60
-0
lines changed
Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ <script setup lang="ts">
2+ import { Input } from ' @/registry/new-york-v4/ui/input'
3+ import { Label } from ' @/registry/new-york-v4/ui/label'
4+ </script >
5+
6+ <template >
7+ <div class =" grid w-full max-w-sm items-center gap-1.5" >
8+ <Label for =" picture" >Picture</Label >
9+ <Input id =" picture" type =" file" />
10+ </div >
11+ </template >
Original file line number Diff line number Diff line change @@ -61,3 +61,52 @@ import { Input } from '@/components/ui/input'
6161 <Input />
6262</template>
6363```
64+
65+ ## Examples
66+
67+ ### Default
68+
69+ :: component-preview
70+ ---
71+ name: InputDemo
72+ class: '[ &_ input] : max-w-xs '
73+ description: A default input component.
74+ ---
75+ ::
76+
77+ ### File
78+
79+ :: component-preview
80+ ---
81+ name: InputFile
82+ description: An input with a file upload field.
83+ ---
84+ ::
85+
86+ ### Disabled
87+
88+ :: component-preview
89+ ---
90+ name: InputDisabled
91+ class: '[ &_ input] : max-w-xs '
92+ description: A disabled input component.
93+ ---
94+ ::
95+
96+ ### With Label
97+
98+ :: component-preview
99+ ---
100+ name: InputWithLabel
101+ description: An input with a label.
102+ ---
103+ ::
104+
105+ ### With Button
106+
107+ :: component-preview
108+ ---
109+ name: InputWithButton
110+ description: An input with a button.
111+ ---
112+ ::
You can’t perform that action at this time.
0 commit comments