UNPKG

@svelkit/chip

Version:

> A chip component for [svelte] (part of [svelkit])

58 lines (38 loc) 1.58 kB
# @svelkit/chip > A chip component for [svelte] (part of [svelkit]) [![License](https://badgen.net/npm/license/@svelkit/chip)](https://github.com/kenoxa/@svelkit/chip/blob/main/LICENSE) [![Latest Release](https://badgen.net/npm/v/@svelkit/chip)](https://www.npmjs.com/package/@svelkit/chip) [![View changelog](https://badgen.net/badge/%E2%80%8B/Explore%20Changelog/green?icon=awesome)](https://changelogs.xyz/@svelkit/chip) [![Bundle Size](https://badgen.net/bundlephobia/minzip/@svelkit/chip)](https://bundlephobia.com/result?p=@svelkit/chip) <!-- prettier-ignore-start --> <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> - [Installation](#installation) - [Usage](#usage) - [License](#license) <!-- END doctoc generated TOC please keep comment here to allow auto update --> <!-- prettier-ignore-end --> ## Installation ```sh npm install @svelkit/chip ``` And then import it: ```js // using es modules import Chip from '@svelkit/chip' // common.js const Chip = require('@svelkit/chip') ``` Alternatively use [UNPKG](https://unpkg.com/@svelkit/chip/) or [jsDelivr](https://cdn.jsdelivr.net/npm/@svelkit/chip/) packages. Hotlinking from unpkg: _(no build tool needed!)_ ```js import chip from 'https://unpkg.com/@svelkit/chip?module' ``` ## Usage ```html <Chip>content</Chip> ``` ## License `svelkit` is open source software [licensed as MIT](https://github.com/kenoxa/svelkit/blob/main/LICENSE). [svelkit]: https://svelkit.js.org/ [svelte]: https://svelte.dev/