@kelvininc/ui-components
Version:
Kelvin UI Components
85 lines (51 loc) • 2.19 kB
Markdown
<!-- Auto Generated Below -->
```tsx
import React from 'react';
import { KvCheckbox } from '@kelvininc/react-ui-components';
export const RadioExample: React.FC = () => (
<>
{/*-- Default --*/}
<KvCheckbox />
{/*-- Checked --*/}
<KvCheckbox checked />
{/*-- Disabled --*/}
<KvCheckbox disabled />
{/*-- Inderterminated --*/}
<KvCheckbox indeterminate />
</>
);
```
| Property | Attribute | Description | Type | Default |
| --------------- | --------------- | ----------------------------------------------------------------------------- | --------- | ------- |
| `checked` | `checked` | (optional) If `true` the checkbox is with checked state. Default: false | `boolean` | `false` |
| `disabled` | `disabled` | (optional) If `true` the checkbox is with disabled state. Default: false | `boolean` | `false` |
| `indeterminate` | `indeterminate` | (optional) If `true` the checkbox is with indeterminate state. Default: false | `boolean` | `false` |
| Event | Description | Type |
| --------------- | ----------------------------------------------- | ------------------- |
| `clickCheckbox` | Emitted when the checkbox checked state changes | `CustomEvent<void>` |
| Part | Description |
| -------- | ----------------- |
| `"icon"` | The icon element. |
| Name | Description |
| ---------------------- | ---------------------------------------------- |
| `--checkbox-icon-size` | Text checkbox height and width. Default: 16px. |
| `--checkbox-size` | Text checkbox height and width. Default: 16px. |
- [kv-select-option](../select-option)
- [kv-icon](../icon)
```mermaid
graph TD;
kv-checkbox --> kv-icon
kv-select-option --> kv-checkbox
style kv-checkbox fill:
```
----------------------------------------------