Skip to content
navy

CheckBox

Custom checkbox component with icon states.

Live Demo

Selections:
Terms: ✗ Not agreed
Newsletter: ✓ Subscribed
Notifications: ✗ Disabled

Usage

vue
<template>
  <orio-check-box v-model="accepted"> I accept the terms </orio-check-box>
</template>

<script setup>
const accepted = ref(false);
</script>

Props

PropTypeDefaultDescription
modelValueboolean-Checkbox state (v-model)
checkedIconstringundefinedIcon name to display when checked
uncheckedIconstringundefinedIcon name to display when unchecked

Events

EventPayloadDescription
update:modelValuebooleanEmitted when checkbox state changes

Slots

SlotPropsDescription
default-Label text/content
icon{ checked: boolean }Custom icon content for check state