Skip to content

CheckboxField

Checkbox input with label.

Import

ts
import { CheckboxField } from '@four-bytes/four-tailwind-ui'

Basic Usage

vue
<script setup>
import { ref } from 'vue'
import { CheckboxField } from '@four-bytes/four-tailwind-ui'

const agreed = ref(false)
</script>

<template>
  <CheckboxField v-model="agreed" label="Ich akzeptiere die AGB" />
</template>

Disabled

vue
<CheckboxField v-model="value" label="Gesperrt" disabled />

Props

PropTypeDefaultDescription
modelValuebooleanfalseChecked state (v-model)
labelstring-Checkbox label
disabledbooleanfalseDisable checkbox

Events

EventPayloadDescription
update:modelValuebooleanEmitted on change

Released under the MIT License.