An open API service indexing awesome lists of open source software.

https://github.com/sean-perkins/ngx-segmented-bar

Segmented bar (button-group) component for Angular.
https://github.com/sean-perkins/ngx-segmented-bar

angular angular-library button-group html ngx sass typescript

Last synced: 3 months ago
JSON representation

Segmented bar (button-group) component for Angular.

Awesome Lists containing this project

README

          

# ngx-segmented-bar

[![npm](https://img.shields.io/npm/v/ngx-segmented-bar.svg?maxAge=2592000?style=plastic)](https://www.npmjs.com/package/ngx-segmented-bar)
[![npm](https://img.shields.io/npm/dt/ngx-segmented-bar.svg?maxAge=2592000?style=plastic)](https://www.npmjs.com/package/ngx-segmented-bar)

Simplistic segmented bars (button groups) in Angular.

![Example Image](https://media.giphy.com/media/3o7btM1DyLY6t3Ky7C/giphy.gif)

1. `npm i ngx-segmented-bar --s`
2. Add `NgxSegmentedBarModule` to your feature module.
```
import { NgxSegmentedBarModule } from 'ngx-segmented-bar';

...
imports: [
NgxSegmentedBarModule
]
...
```

## Usage

```html

```

```javascript
segmentedBarItems: any[] = [
{
title: 'Test 1'
},
{
title: 'Test 2'
}
];

onSegmentedItemChange($event) {
console.log('changed', $event);
}
```

## Contributors

[Sean perkins](https://github.com/sean-perkins) |
:---:
|[Sean Perkins](https://github.com/sean-perkins)|