ember-cli addon for @material/segmented-button
ember install ember-cli-mdc-segmented-button
@use "@material/segmented-button" as segmented
The <MdcSegmentedButton />
component is multi-select by default. You just add
one or more <MdcSegmentedButtonSegment />
components to the <MdcSegmentedButton />
component.
Set the @singleSelect={{true}}
attribute to create a single-select segmented button.
You must set the
@selected
attribute on one of the<MdcSegmentedButtonSegment />
components, or the first<MdcSegmentedButtonSegment />
component will be automatically selected.