mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
## Problem Now that we migrated old components to their new shadcn alternatives, we don't need the `_Shadcn_` suffix anymore. ## Solution Remove it <img width="659" height="609" alt="image" src="https://github.com/user-attachments/assets/2d7271a9-066a-4dcc-92fe-729b106d2c2f" />
57 lines
1.8 KiB
TypeScript
57 lines
1.8 KiB
TypeScript
import { Button, Input, Textarea } from 'ui'
|
|
import {
|
|
Field,
|
|
FieldContent,
|
|
FieldDescription,
|
|
FieldGroup,
|
|
FieldLabel,
|
|
FieldLegend,
|
|
FieldSeparator,
|
|
FieldSet,
|
|
} from 'ui/src/components/shadcn/ui/field'
|
|
|
|
export default function FieldResponsive() {
|
|
return (
|
|
<div className="w-full max-w-4xl">
|
|
<form>
|
|
<FieldSet>
|
|
<FieldLegend>Profile</FieldLegend>
|
|
<FieldDescription>Fill in your profile information.</FieldDescription>
|
|
<FieldSeparator />
|
|
<FieldGroup>
|
|
<Field orientation="responsive">
|
|
<FieldContent>
|
|
<FieldLabel htmlFor="name">Name</FieldLabel>
|
|
<FieldDescription>Provide your full name for identification</FieldDescription>
|
|
</FieldContent>
|
|
<Input id="name" placeholder="Evil Rabbit" required />
|
|
</Field>
|
|
<FieldSeparator />
|
|
<Field orientation="responsive">
|
|
<FieldContent>
|
|
<FieldLabel htmlFor="lastName">Message</FieldLabel>
|
|
<FieldDescription>
|
|
You can write your message here. Keep it short, preferably under 100 characters.
|
|
</FieldDescription>
|
|
</FieldContent>
|
|
<Textarea
|
|
id="message"
|
|
placeholder="Hello, world!"
|
|
required
|
|
className="min-h-[100px] resize-none sm:min-w-[300px]"
|
|
/>
|
|
</Field>
|
|
<FieldSeparator />
|
|
<Field orientation="responsive">
|
|
<Button htmlType="submit">Submit</Button>
|
|
<Button htmlType="button" type="default">
|
|
Cancel
|
|
</Button>
|
|
</Field>
|
|
</FieldGroup>
|
|
</FieldSet>
|
|
</form>
|
|
</div>
|
|
)
|
|
}
|