mirror of
https://github.com/supabase/supabase.git
synced 2026-06-13 01:39:53 +08: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" />
27 lines
893 B
TypeScript
27 lines
893 B
TypeScript
import { UseFormReturn } from 'react-hook-form'
|
|
import { FormControl, FormField, Input, SheetSection } from 'ui'
|
|
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
|
|
|
|
import { CreateQueueForm } from './CreateQueueSheet.schema'
|
|
|
|
export function QueueNameField({ form }: { form: UseFormReturn<CreateQueueForm> }) {
|
|
return (
|
|
<SheetSection>
|
|
<FormField
|
|
control={form.control}
|
|
name="name"
|
|
render={({ field }) => (
|
|
<FormItemLayout label="Name" layout="vertical" className="gap-1 relative">
|
|
<FormControl>
|
|
<Input {...field} />
|
|
</FormControl>
|
|
<span className="text-foreground-lighter text-xs absolute top-0 right-0">
|
|
Can include letters, numbers, underscores, and hyphens
|
|
</span>
|
|
</FormItemLayout>
|
|
)}
|
|
/>
|
|
</SheetSection>
|
|
)
|
|
}
|