@kelvininc/ui-components
Version:
Kelvin UI Components
60 lines (36 loc) • 1.48 kB
Markdown
<!-- Auto Generated Below -->
## Usage
### React
```tsx
import React from 'react';
import { KvTag } from '@kelvininc/react-ui-components';
export const TagExample: React.FC = () => (
<>
{/*-- Default --*/}
<KvTag label="Tag Label" />
</>
);
```
## Properties
| Property | Attribute | Description | Type | Default |
| -------- | --------- | ------------------------------- | ---------------------------------------------- | ---------------------- |
| `label` | `label` | (optional) Tag label | `string` | `undefined` |
| `size` | `size` | (optional) Sets the size of tag | `EComponentSize.Large \| EComponentSize.Small` | `EComponentSize.Large` |
## CSS Custom Properties
| Name | Description |
| ------------------------ | -------------------------- |
| `--tag-background-color` | Tag Background Color. |
| `--tag-border-color` | Tag Border Color. |
| `--tag-content-gap` | Gap between text and slot. |
| `--tag-content-padding` | Padding insise content |
| `--tag-label-color` | Tag Text Color. |
## Dependencies
### Used by
- [kv-tag-alarm](../tag-alarm)
### Graph
```mermaid
graph TD;
kv-tag-alarm --> kv-tag
style kv-tag fill:#f9f,stroke:#333,stroke-width:4px
```
----------------------------------------------