Segmented Control

Compact multi-option selector with animated active segment.

Import/Installation

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

Preview

Usage

<SegmentedControl
  value={value}
  onChange={setValue}
  options={[
    { value: "a", label: "A" },
    { value: "b", label: "B" },
  ]}
/>

Props

PropTypeDefaultRequiredDescription
valuestringYesThe currently selected value.
options{ value: string; label: string }[]YesArray of options to display.
onChange(value: string) => voidYesCallback fired when the value changes.
disabledbooleanNoWhether the control is disabled.
variant"default" | "outline""default"NoThe visual variant of the segmented control.
size"sm" | "default""default"NoThe size of the segmented control.
Last updated: August 5, 2026 at 11:47 AMEdit this page