DeprecatedThis package is deprecated
@wicara/badge
Badge component for Wicara.
Install
# yarn
yarn add @kata-kit/badge
# npm
npm install @kata-kit/badge
Usage
To use this component within your React app, import as follows:
import { Badge } from '@kata-kit/badge';
const Component = () => <Badge color="default" message="text" />;
See more usage in the JSX panel
Props
| Property | Type | Required | Default |
|---|---|---|---|
| color | 'primary', 'secondary', 'success', 'warning', 'danger' |
- | - |
| className | string |
- | undefined |
| style | React.CSSProperties |
- | undefined |