For the complete documentation index, see llms.txt. This page is also available as Markdown.

Segmented

Segmented Props

Name
Type
Default
Description

colors

object

Object with Tailwind CSS colors classes

colors.borderIos

string

'border-primary'

colors.borderMaterial

string

'border-md-light-outline dark:border-md-dark-outline'

colors.divideIos

string

'divide-primary'

colors.divideMaterial

string

'divide-md-light-outline dark:divide-md-dark-outline'

colors.strongBgIos

string

'bg-black bg-opacity-5 dark:bg-white dark:bg-opacity-10'

colors.strongBgMaterial

string

'bg-md-light-surface-variant dark:bg-md-dark-surface-variant'

component

string

'div'

Component's HTML Element

outline

boolean

false

Makes segmented outline

raised

boolean

false

Makes segmented raised

rounded

boolean

false

Makes segmented rounded

strong

boolean

false

Makes segmented strong

SegmentedButton Props

SegmentedButton component extends Button component, it supports all Button props and the following additional props:

Name
Type
Default
Description

active

boolean

false

Highlights button as active

component

string

'button'

Component's HTML Element

rounded

boolean

false

Makes segmented button rounded (should be used within <Segmented rounded>)

strong

boolean

false

Makes strong segmented button (should be used within <Segmented strong>)

Examples

Last updated