mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55: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" />
30 lines
877 B
TypeScript
30 lines
877 B
TypeScript
import { Input } from 'ui'
|
|
import {
|
|
Field,
|
|
FieldDescription,
|
|
FieldGroup,
|
|
FieldLabel,
|
|
FieldSet,
|
|
} from 'ui/src/components/shadcn/ui/field'
|
|
|
|
export default function FieldInput() {
|
|
return (
|
|
<div className="w-full max-w-md">
|
|
<FieldSet>
|
|
<FieldGroup>
|
|
<Field>
|
|
<FieldLabel htmlFor="username">Username</FieldLabel>
|
|
<Input id="username" type="text" placeholder="Max Leiter" />
|
|
<FieldDescription>Choose a unique username for your account.</FieldDescription>
|
|
</Field>
|
|
<Field>
|
|
<FieldLabel htmlFor="password">Password</FieldLabel>
|
|
<FieldDescription>Must be at least 8 characters long.</FieldDescription>
|
|
<Input id="password" type="password" placeholder="••••••••" />
|
|
</Field>
|
|
</FieldGroup>
|
|
</FieldSet>
|
|
</div>
|
|
)
|
|
}
|