first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
# Component specification
|
||||
|
||||
Copy this file next to the template and call it `component-<component-name-kebap-case>.md`.
|
||||
|
||||
This component specification describes the public API of a component intended to be added to the component library of our design system.
|
||||
To be made available for review in a GitHub pull request before implementation.
|
||||
With two approvals, you can be quite sure that the API won't be challenged anymore on the implementation PR.
|
||||
|
||||
- **Component Name:** N8nCheckbox
|
||||
- **Element+ Component:** [ElCheckbox](https://element-plus.org/en-US/component/checkbox)
|
||||
- **Reka UI Component:** [Checkbox](https://reka-ui.com/docs/components/checkbox)
|
||||
- **Nuxt UI Component:** [Checkbox](https://ui.nuxt.com/docs/components/checkbox)
|
||||
|
||||
^ Only list what exists in the external component libraries. Nuxt uses Reka under the hood. We use it as guideline on for the public API of our reka-ui-based components
|
||||
|
||||
## Public API Definition
|
||||
|
||||
**Props**
|
||||
|
||||
- `modelValue`: `boolean` | `default: false`
|
||||
- `label?`: `string` | provided via slot
|
||||
- `disabled?`: `boolean` | `default: false`
|
||||
- `tooltipText?`: `string`
|
||||
- `size?`: `'small' | 'medium'` | `default: 'medium'`
|
||||
|
||||
**Events**
|
||||
|
||||
- `update:modelValue(value: boolean)`
|
||||
- `change(value: boolean)`
|
||||
|
||||
**Slots**
|
||||
|
||||
- `label`: `{ label?: string | undefined; }`
|
||||
|
||||
**CSS Variables**
|
||||
|
||||
- `--checkbox--border-color`
|
||||
- `--checkbox--border-color--checked`
|
||||
|
||||
### Template usage example
|
||||
|
||||
```vue
|
||||
<N8nCheckbox size="medium" label="Subscribe to newsletter" />
|
||||
```
|
||||
Reference in New Issue
Block a user