Skip to content

Commit 563196c

Browse files
committed
docs(v4): input sync shadcn-ui
1 parent 4621c42 commit 563196c

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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>

apps/v4/content/docs/components/input.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
::

0 commit comments

Comments
 (0)