Check
Check supports checkbox
and radio
input types
Usage
css
@import "winduum/src/ui/check/index.css" layer(components);
Variants
Tokens
Props
Installation
Follow instructions for individual framework usage below
Examples
Basic
html
<div class="ui-check">
<input type="checkbox">
Checkbox
</div>
<label class="ui-check">
<input type="checkbox">
</label>
vue
<script setup lang="ts">
import { UiCheck } from '@/components/ui/check'
</script>
<template>
<UiCheck>
<input type="checkbox">
Checkbox
</UiCheck>
<UiCheck>
<input type="checkbox">
</UiCheck>
</template>
jsx
import { UiCheck } from "@/components/ui/check"
export function Example() {
return (
<>
<UiCheck>
<input type="checkbox" />
Checkbox
</UiCheck>
<UiCheck>
<input type="checkbox" />
</UiCheck>
</>
)
}
html
<div class="ui-check">
<input type="radio" name="radio">
Radio
</div>
<label class="ui-check">
<input type="radio" name="radio">
</label>
vue
<script setup lang="ts">
import { UiCheck } from '@/components/ui/check'
</script>
<template>
<UiCheck>
<input type="radio">
Radio
</UiCheck>
<UiCheck>
<input type="radio">
</UiCheck>
</template>
jsx
import { UiCheck } from "@/components/ui/check"
export function Example() {
return (
<>
<UiCheck>
<input type="radio" />
Radio
</UiCheck>
<UiCheck>
<input type="radio" />
</UiCheck>
</>
)
}
Label
html
<div class="ui-check">
<input type="checkbox" id="checkbox">
<label for="checkbox">Checkbox</label>
</div>
html
<div class="ui-check">
<input type="radio" id="radio">
<label for="radio">Radio</label>
</div>
Required
html
<div class="ui-check">
<input type="checkbox" id="checkbox" required>
<label for="checkbox">Checkbox</label>
</div>
html
<div class="ui-check">
<input type="radio" id="radio" required>
<label for="radio">Radio</label>
</div>
Disabled
html
<div class="ui-check">
<input type="checkbox" disabled>
Checkbox
</div>
<label class="ui-check">
<input type="checkbox" disabled>
</label>
html
<div class="ui-check">
<input type="radio" disabled>
Radio
</div>
<label class="ui-check">
<input type="radio" disabled>
</label>
Validation
html
<form class="validated">
<div class="ui-check">
<input type="checkbox" id="checkbox" required>
<label for="checkbox">Checkbox</label>
</div>
</form>
html
<form class="validated">
<div class="ui-check">
<input type="radio" id="radio" required>
<label for="radio">Radio</label>
</div>
</form>