@graph-paper/chip

0.0.0-alpha.15 • Public • Published

Chip

A chip is a discrete interaction element conveying information that is filterable, cancelable, and clickable. More information about chips can be found in the Material Design documentation.

usage

npm install @graph-paper/core @graph-paper/chip
<script>
import { Chip, ChipSet } from '@graph-paper/chip';
</script>

<ChipSet>
  <Chip>a plain chip</Chip>
  <Chip disabled>a plain chip</Chip>
  <Chip toggled={whichChip} on:click={() => { whichChip = true; }}>A</Chip>
  <Chip toggled={whichChip} on:click={() => { whichChip = true; }}>B</Chip>
  <Chip filterable toggled={whichChip} on:click={() => { whichChip = true; }}>
    A filterable
  </Chip>
  <Chip filterable toggled={whichChip} on:click={() => { whichChip = true; }}>
    B filterable
  </Chip>
  <Chip cancelable on:cancel={console.log}>
    Cancelable Chip
  </Chip>
</ChipSet>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.0-alpha.150latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.0-alpha.150
0.0.0-alpha.140
0.0.0-alpha.130
0.0.0-alpha.120
0.0.0-alpha.110
0.0.0-alpha.100
0.0.0-alpha.90
0.0.0-alpha.80
0.0.0-alpha.70

Package Sidebar

Install

npm i @graph-paper/chip

Weekly Downloads

0

Version

0.0.0-alpha.15

License

MPL-2.0

Unpacked Size

28.8 kB

Total Files

10

Last publish

Collaborators

  • hamiltonulmer
  • openjck
  • wlach