For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/components/segmented.md.
v0.0.57
  • English
  • Segmented

    Data Entry@rockshin/tao-ui

    Selects one view or mode from a compact set of choices.

    This native tao-ui component follows the public API of Ant Design 6.7.0. Appearance, theme tokens and Semantic DOM customization belong to tao-ui; configure themes with TaoProvider.

    The 6.7.0 value/options API is rendered with native radios and tao-ui motion. Size inherits TaoProvider; reduced-motion preferences disable the moving highlight.

    When to use

    Use for small, closely related choices. Native radio controls support form submission and keyboard selection.

    Examples

    Basic selection

    TSX

    Controlled selection

    Current view: List

    TSX

    Sizes and rounded shape

    TSX

    Disabled choices and labels

    390 × 640
    TSX

    Vertical and RTL

    TSX

    Submit a native form

    Submitted: —

    TSX

    API

    Segmented

    PropertyDescriptionTypeDefault Value
    disabledWhether to disableboolean | undefined-