import { useId } from 'react'
import { Label } from '@/registry/new-york/ui/label'
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectLabel,
SelectTrigger,
SelectValue
} from '@/registry/new-york/ui/select'
const SelectMenuSlideInDemo = () => {
const id = useId()
return (
<div className='w-full max-w-xs space-y-2'>
<Label htmlFor={id}>Select menu slide-in from bottom</Label>
<Select defaultValue='apple'>
<SelectTrigger id={id} className='w-full'>
<SelectValue placeholder='Select a fruit' />
</SelectTrigger>
<SelectContent className='data-[state=open]:slide-in-from-bottom-8 data-[state=open]:zoom-in-100 duration-400'>
<SelectGroup>
<SelectLabel>Fruits</SelectLabel>
<SelectItem value='apple'>Apple</SelectItem>
<SelectItem value='banana'>Banana</SelectItem>
<SelectItem value='blueberry'>Blueberry</SelectItem>
<SelectItem value='grapes'>Grapes</SelectItem>
<SelectItem value='pineapple'>Pineapple</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</div>
)
}
export default SelectMenuSlideInDemo