yarcl
    Preparing search index...

    Function Select

    • Picks one value from a list, like a native <select> but styled from the design tokens. Arrow keys and type-to-select work both open and closed. Shares the size scale with Input and Button. Works inside a Field.

      Type Parameters

      • V extends string = string

      Parameters

      Returns Element

      <Select
      placeholder="Choose a plan"
      options={[
      { value: 'free', label: 'Free' },
      { value: 'pro', label: 'Pro' },
      ]}
      onValueChange={setPlan}
      />