Package Exports
- @detachhead/smui-extra-badge
- @detachhead/smui-extra-badge/package/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@detachhead/smui-extra-badge) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Svelte Material UI - Badge
An indicator for content.
Installation
npm install --save-dev @smui-extra/badgeExamples and Usage Information
https://sveltematerialui.com/demo/badge
Exports
(default)
A badge.
Props / Defaults
use:[]- An array of Svelte actions and/or arrays of an action and its options.class:''- A CSS class string.square:false- Whether the component has square or rounded corners.color:'default'- The component's color. ('primary', 'secondary', 'default', or a custom color string defined with SASS)position:'middle'- The position of the badge relative to the corner of the container. ('inset', 'middle', or 'outset')align:'top-end'- The corner alignment of the badge on its container. ('top-start', 'top-end', 'bottom-start', or 'bottom-end')