React

Chip Tabs

A tab component expressed in Chip form. It is used when selecting categories or filters to switch content.

Available since@seed-design/react@0.0.1, @seed-design/css@0.0.1

Installation

npx @seed-design/cli@latest add ui:chip-tabs

Props

ChipTabsRoot

Prop

Type

orientation?"horizontal" | "vertical" | undefined
value?string | undefined
defaultValue?string | undefined
onValueChange?((value: string) => void) | undefined

ChipTabsList

Prop

Type

ChipTabsTrigger

Prop

Type

notification?boolean | undefined
valuestring
disabled?boolean | undefined

ChipTabsCarousel

Prop

Type

swipeable?boolean | undefined
autoHeight?boolean | undefined
loop?boolean | undefined
dragThreshold?number | undefined
onSettle?(() => void) | undefined

ChipTabsContent

Prop

Type

valuestring

Examples

Size=Medium

Size=Large

Variant=Neutral Solid

Variant=Neutral Outline

Notification

With Scroll Fog

When you have many tabs and horizontal scrolling is needed, you can apply Scroll Fog to provide left and right scroll hints.

The recommended padding of 20px must be maintained.

Table of contents