<Segment />

Segment component.

Usage

<Segment modifier="material">
 <button>Label 1</button>
 <button>Label 2</button>
 <button>Label 3</button>
</Segment>

Props

Name Type Description
index number The index of the button to highlight. Optional.
tabbarId string ID of the <Tabbar> to “connect” to the segment. Optional.
modifier string The appearance of the segment. Optional.
onChange func Called when the active button changes. Optional.

Preset Modifiers

Name Description
material Material Design segment

Need Help?

If you have any questions, use our Community Forum or talk to us on Discord chat. The Onsen UI team and your peers in the community will work together to help solve your issues.

For bug reports and feature requests use our GitHub Issues page.