@antadesign/anta
    Preparing search index...

    Function SelectUnreviewed

    • <Select> lets people choose one or more options from a dropdown. It uses a <Button> as its trigger and a <Menu> for its options. selection sets behavior: 'single' (default; value is a string, menu closes on pick) or 'multiple' (checkboxes, value is a string array, menu stays open while toggling, the field shows an "N selected" count). For single-select, indicator picks the per-row mark: 'none' (tint only, default), 'check' (trailing checkmark), or 'radio' (leading radio).

      Use value with onValueChange to control the selection, or use defaultValue for uncontrolled use. There is no a-select element. See the docs for the equivalent markup without React or Preact.

      Requires @antadesign/anta/elements (client-side only).

      Type Parameters

      Parameters

      Returns any

      <Select
      label="Field"
      options={['output_text', 'stream', 'container']}
      defaultValue="stream"
      onValueChange={(v) => console.log(v)}
      />