Select 34

PreviousNext

A native multiple select dropdown for dietary preferences with bordered container

Docs
shadcn-studiocomponent

Preview

Loading preview…
registry/new-york/components/select/select-34.tsx
import { useId } from 'react'

import { Label } from '@/registry/new-york/ui/label'
import { SelectNative } from '@/registry/new-york/ui/select-native'

const SelectNativeMultipleDemo = () => {
  const id = useId()

  return (
    <div className='w-full max-w-xs space-y-2'>
      <Label htmlFor={id}>Native multiple select</Label>
      <div className='border-input overflow-hidden rounded-md border'>
        <SelectNative id={id} multiple className='rounded-none border-none'>
          <option value='1'>Vegetarian</option>
          <option value='2'>Vegan</option>
          <option value='3'>Gluten-Free</option>
          <option value='4'>Halal</option>
          <option value='5'>Kosher</option>
          <option value='6'>Dairy-Free</option>
        </SelectNative>
      </div>
    </div>
  )
}

export default SelectNativeMultipleDemo

Installation

npx shadcn@latest add @shadcn-studio/select-34

Usage

import { Select34 } from "@/components/select-34"
<Select34 />