mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 21:05:06 +03:00
* feat(ui): add Field component * feat(design-system): add Field documentation
25 lines
624 B
TypeScript
25 lines
624 B
TypeScript
import { Textarea } from 'ui'
|
|
import {
|
|
FieldSet,
|
|
Field,
|
|
FieldLabel,
|
|
FieldDescription,
|
|
FieldGroup,
|
|
} from 'ui/src/components/shadcn/ui/field'
|
|
|
|
export default function FieldTextarea() {
|
|
return (
|
|
<div className="w-full max-w-md">
|
|
<FieldSet>
|
|
<FieldGroup>
|
|
<Field>
|
|
<FieldLabel htmlFor="feedback">Feedback</FieldLabel>
|
|
<Textarea id="feedback" placeholder="Your feedback helps us improve..." rows={4} />
|
|
<FieldDescription>Share your thoughts about our service.</FieldDescription>
|
|
</Field>
|
|
</FieldGroup>
|
|
</FieldSet>
|
|
</div>
|
|
)
|
|
}
|