import type { Meta, StoryObj } from '@storybook/nextjs'
import { useState } from 'react'
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectLabel,
SelectSeparator,
SelectTrigger,
SelectValue,
} from './Select'
const SelectExample = () => {
const [value, setValue] = useState('apple')
return (
)
}
const SelectWithSeparatorExample = () => {
const [value, setValue] = useState('')
return (
)
}
const meta = {
component: Select,
parameters: {
docs: {
description: {
component:
'A Radix UI Select wrapper. Use Select, SelectTrigger, SelectValue, SelectContent, SelectGroup, SelectLabel, SelectItem, and SelectSeparator together.',
},
},
},
} satisfies Meta
export default meta
type Story = StoryObj
export const Default: Story = {
render: () => ,
}
export const WithGroups: Story = {
render: () => ,
}