# pip-webui2-buttons

> ![](https://img.shields.io/badge/license-MIT-blue.svg)

Latest version **2.0.0-rc.1** (published 2020-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install pip-webui2-buttons
pnpm add pip-webui2-buttons
yarn add pip-webui2-buttons
bun add pip-webui2-buttons
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0-rc.1 |
| Published | 2020-11-11 |
| First published | 2018-01-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 221.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | pipdevs |

## Links

- npm: https://www.npmjs.com/package/pip-webui2-buttons
- Repository: https://github.com/pip-webui2/pip-webui2-buttons
- Homepage: https://github.com/pip-webui2/pip-webui2-buttons#readme
- Issues: https://github.com/pip-webui2/pip-webui2-buttons/issues
- npm.io page: https://npm.io/package/pip-webui2-buttons

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.0.0

## Recent versions

- 2.0.0-rc.1 (latest) — 2020-11-11
- 1.1.6 — 2019-12-20
- 1.1.5 — 2019-12-10
- 1.1.4 — 2019-11-13
- 1.1.3 — 2019-01-22
- 1.1.2 — 2019-01-08
- 1.1.1 — 2018-12-04
- 1.1.0 — 2018-11-21
- 1.0.0 — 2018-10-08
- 0.0.1 — 2018-02-26
- 0.0.0 — 2018-01-09

## README

# <img src="https://github.com/pip-webui/pip-webui/raw/master/doc/Logo.png" alt="Pip.WebUI Logo" style="max-width:30%"> <br/> Buttons

![](https://img.shields.io/badge/license-MIT-blue.svg)

Pip.WebUI.Buttons provides a selection of button controls: toggle buttons, action buttons, drilldown lists, etc.

### Action list

**Is a set of big action buttons that are placed at the bottom of a page**

**Using**

Example with using angular-material components: mat-button and mat-icon.

```html
<pip-action-list>
    <button mat-button class="pip-action-list-item">
        <mat-icon>home</mat-icon>
        <span class="pip-title">Home</span>
    </button>
</pip-action-list>
```

**Example on the image**

<a href="https://github.com/pip-webui2/pip-webui2-buttons/raw/master/doc/images/action-list.png" style="display: block; text-align: center;">
    <img style="max-width: 300px" src="https://github.com/pip-webui2/pip-webui2-buttons/raw/master/doc/images/action-list.png"/>
</a>

### Drilldown list

**Is a list with clickable items, that lead to detail information**

**Using**

Example with using angular-material components: mat-button and mat-icon.

``` html
<pip-drilldown-list>
  <button mat-button class="pip-drilldown-list-item pip-selected" >
        <div class="pip-content">
            <mat-icon class="pip-icon">chat_bubble</mat-icon>
            <p class="pip-title">Chat</p>
            <mat-icon>chevron_right</mat-icon>
        </div>
    </button>
  <button mat-button class="pip-drilldown-list-item pip-drilldown-list-item-lg">
        <div class="pip-content">
            <mat-icon class="pip-icon">mail</mat-icon>
            <div class="pip-subcontent">
                <p class="pip-title">Mails</p>
                <p class="pip-subtitle">Inbox: 23</p>
            </div>
            <mat-icon>chevron_right</mat-icon>
        </div>
    </button>
</pip-drilldown-list>
```

**Example on the image**

<a href="https://github.com/pip-webui2/pip-webui2-buttons/raw/master/doc/images/drilldown-list.png" style="display: block; text-align: center;">
    <img style="max-width: 300px" src="https://github.com/pip-webui2/pip-webui2-buttons/raw/master/doc/images/drilldown-list.png"/>
</a>

### Toggle buttons

**Control implement multiple radio buttons. Only one of them can be pressed at any time. On phones buttons are replaced with dropdown list**

**Using**

Example with using angular-material components: mat-button-toggle-group and mat-button-toggle. Add **pip-button-toggle-group** class to restyle angular-material toggle buttons.

```html
<mat-button-toggle-group class="pip-button-toggle-group">
  <mat-button-toggle fxFlex="fill" value="goal" style="text-align: center">
    <!--mat-icon>format_align_left</mat-icon-->
    Goal
  </mat-button-toggle>
  <mat-button-toggle fxFlex="fill" value="dream" style="text-align: center">
    <!--mat-icon>format_align_center</mat-icon-->
    Dream
  </mat-button-toggle>
  <mat-button-toggle fxFlex="fill" value="task" style="text-align: center">
    <!--mat-icon>format_align_right</mat-icon-->
    Task
  </mat-button-toggle>
  <mat-button-toggle fxFlex="fill" value="area" disabled style="text-align: center">
    <!--mat-icon>format_align_justify</mat-icon-->
    Area
  </mat-button-toggle>
</mat-button-toggle-group>
```

**Example on the image**

<a href="https://github.com/pip-webui2/pip-webui2-buttons/raw/master/doc/images/toggle-buttons.png" style="display: block; text-align: center;">
    <img style="max-width: 300px" src="https://github.com/pip-webui2/pip-webui2-buttons/raw/master/doc/images/toggle-buttons.png"/>
</a>

## Installation

To install this module using npm:

```bash
npm install pip-webui2-buttons --save
```

## <a name="license"></a>License

This module is released under [MIT license](License) and totally free for commercial and non-commercial use.

---
_Source: https://npm.io/package/pip-webui2-buttons · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
