mirror of
https://github.com/hanzoai/o11y-components.git
synced 2026-10-30 14:54:15 +00:00
25 lines
492 B
Plaintext
25 lines
492 B
Plaintext
import { Meta, Controls, Primary } from '@storybook/addon-docs/blocks';
|
|
import * as CheckboxStories from './checkbox.stories';
|
|
|
|
<Meta of={CheckboxStories} />
|
|
|
|
# Checkbox
|
|
|
|
A customizable checkbox component for user selections.
|
|
|
|
## How to use
|
|
|
|
```tsx
|
|
import { Checkbox } from '@signozhq/ui';
|
|
|
|
export default function MyComponent() {
|
|
return <Checkbox>Default checkbox</Checkbox>
|
|
}
|
|
```
|
|
|
|
This code above will render the following checkbox:
|
|
|
|
<Primary />
|
|
|
|
<Controls of={CheckboxStories.Default} />
|