Select

Simple select API and low-level primitives for custom dropdowns.

Import/Installation

import { Select } from "@lottiefiles/creator-plugins-ui";

Preview

Usage

<Select
  options={[
    { value: "gif", label: "GIF" },
    { value: "mp4", label: "MP4" },
  ]}
  value={value}
  onValueChange={setValue}
/>

Props

PropTypeDefaultRequiredDescription
options{ value: string; label: string; disabled?: boolean }[]YesArray of options to display.
valuestringNoThe controlled value of the select.
defaultValuestringNoThe default value when uncontrolled.
onValueChange(value: string) => voidNoCallback fired when the value changes.
placeholderstring"Select an option"NoPlaceholder text when no value is selected.
disabledbooleanfalseNoWhether the select is disabled.

Built on Base UI Select. For more granular control, the library also exports the lower-level primitives SelectRoot, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectItemWithDescription, SelectSeparator, SelectScrollUpButton, and SelectScrollDownButton.

Last updated: August 5, 2026 at 11:47 AMEdit this page