# ember-cli-mdc-segmented-button

> ember-cli addon for @material/segmented-button.

Latest version **3.0.17** (published 2024-04-30) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install ember-cli-mdc-segmented-button
pnpm add ember-cli-mdc-segmented-button
yarn add ember-cli-mdc-segmented-button
bun add ember-cli-mdc-segmented-button
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.17 |
| Published | 2024-04-30 |
| First published | 2024-02-12 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 14.* \|\| 16.* \|\| >= 18 |
| Dependencies | 9 |
| Unpacked size | 18.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 44 |
| Author | James H. Hill |
| Maintainers | onehilltech |
| Keywords | ember-addon, material, material design, material components, segmented button |

## Links

- npm: https://www.npmjs.com/package/ember-cli-mdc-segmented-button
- Repository: https://github.com/onehilltech/ember-cli-mdc
- Homepage: https://github.com/onehilltech/ember-cli-mdc#readme
- Issues: https://github.com/onehilltech/ember-cli-mdc/issues
- npm.io page: https://npm.io/package/ember-cli-mdc-segmented-button

## Dependencies (9)

- [ember-modifier](https://npm.io/package/ember-modifier.md) ^4.1.0
- [@material/radio](https://npm.io/package/@material/radio.md) ^14.0.0
- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^7.26.11
- [ember-auto-import](https://npm.io/package/ember-auto-import.md) ^2.6.3
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^6.2.0
- [ember-cli-mdc-sass](https://npm.io/package/ember-cli-mdc-sass.md) ^3.0.8
- [ember-cli-mdc-utils](https://npm.io/package/ember-cli-mdc-utils.md) ^3.0.8
- [@material/segmented-button](https://npm.io/package/@material/segmented-button.md) ^14.0.0
- [ember-cli-blueprint-helpers](https://npm.io/package/ember-cli-blueprint-helpers.md) ^0.4.8

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@mesalvo/react-ui](https://npm.io/package/@mesalvo/react-ui.md) — 1.7K weekly downloads

## Recent versions

- 3.0.17 (latest) — 2024-04-30
- 3.0.16 — 2024-04-19
- 3.0.8 — 2024-04-08
- 3.0.5 — 2024-04-08
- 3.0.4 — 2024-04-08
- 3.0.0 — 2024-02-12

## README

ember-cli-mdc-segmented-button
===============================

ember-cli addon for [`@material/segmented-button`](https://github.com/material-components/material-components-web/tree/master/packages/mdc-segmented-button)

Installation
------------

    ember install ember-cli-mdc-segmented-button

Styles
-------


```sass
@use "@material/segmented-button" as segmented
```

Multi-select Segmented Button
-------------------------------

The `<MdcSegmentedButton />` component is multi-select by default. You just add
one or more `<MdcSegmentedButtonSegment />` components to the `<MdcSegmentedButton />` 
component.

```handlebars
<MdcSegmentedButton>
    <MdcSegmentedButtonSegment @icon="favorite" />
    <MdcSegmentedButtonSegment @label="Sample Text" />
    <MdcSegmentedButtonSegment @icon="favorite" @label="Sample Text" />
</MdcSegmentedButton>
```

Single-select Segmented Button
--------------------------------

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.

```handlebars
  <MdcSegmentedButton @singleSelect={{true}}>
    <MdcSegmentedButtonSegment @icon="favorite" />
    <MdcSegmentedButtonSegment @label="Sample Text" />
    <MdcSegmentedButtonSegment @icon="favorite" @label="Sample Text" />
</MdcSegmentedButton>
```

---
_Source: https://npm.io/package/ember-cli-mdc-segmented-button · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
