Package Exports
- @responsive-ui/badge
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 (@responsive-ui/badge) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@responsive-ui/badge
A badge component of responsive-ui.
Install
npm install @responsive-ui/badgeor
yarn add @responsive-ui/badgeLook and Feel
Properties, Events & Slots
interface BadgeProps {
id?: string;
class?: string;
count: number;
max?: number;
style?: string;
}
interface BadgeEvents {}
interface BadgeSlots {
default: {};
}
declare class Badge extends SvelteComponentTyped<
BadgeProps,
BadgeEvents,
BadgeSlots
> {}Example
<script>
import Badge from '@responsive-ui/badge';
const onClick = () => {
console.log("clicked!");
}
</script>
<Badge count={1000}>Badge</Badge>
Sponsors
License
@responsive-ui/badge is 100% free and open-source, under the MIT license.
Big Thanks To
Thanks to these awesome companies for their support of Open Source developers ❤