Skip to content

checkbox input component

About

The checkbox is a form input component for boolean inputs .

Example

The checkbox input component is usually used together with form-row.

Checkbox

<x-coreui::input-row
    :label="trans('bc-contracts-domain::contract-document.attributes.archived')"
    horizontal
>
    <x-coreui::in.checkbox
        name="archived"
        :checked="$contractDocument->archived"
    />
</x-coreui::input-row>

Radio-Group

<x-coreui::input-row
    class="recurring-ends-type-container"
    :label="trans('bc-contracts-domain::contract-document.attributes.radios')"
    horizontal
>
    <x-coreui::in.checkbox
        name="{{ $name }}[recurring_ends_type]"
        :value="'NEVER'"
        type="radio"
        :label="trans('bc-events-domain::appointment.attributes.never')"
    />
    <x-coreui::in.checkbox
        name="{{ $name }}[recurring_ends_type]"
        :value="'DATE'"
        type="radio"
        :label="trans('bc-events-domain::appointment.attributes.date')"
    />
    <x-coreui::in.checkbox
        name="{{ $name }}[recurring_ends_type]"
        :value="'OCCURRENCES'"
        type="radio"
        :label="trans('bc-events-domain::appointment.attributes.occurrences')"
    />
</x-coreui::input-row>

The above example code looks like this: Example for checkbox input component

Attributes

Name

Label

Value

Checked

Horizontal

Errors