NOCTA UI

Select

A flexible select component for choosing from a list of options with multiple sizes and dark mode support

Installation

Install the Select component using the nocta-ui CLI:

npx @nocta-ui/cli add select

Import the components you need:

import {
  Select,
  SelectTrigger,
  SelectContent,
  SelectItem,
  SelectValue,
} from '@/components/ui/select';

Examples

Default Select

Variants

Default

Error

Please select an option

Success

Looks good!

Sizes

Small

Medium

Large

Api Reference

Select

Prop

Type

SelectTrigger

Prop

Type

SelectContent

Prop

Type

SelectItem

Prop

Type

SelectValue

Prop

Type