Checkbox

A control that allows the user to toggle between checked and not checked.

Quick Setup

Configure your preferences in seconds

Reduce eye strain in low-light conditions

Stay updated with real-time alerts

Never lose your work

Your preferences:

Installation

CLI

Install the component using the StarUI CLI:

star add checkbox

Examples

Terms & Conditions

Registration form with required checkboxes

Complete Registration

Please review and accept our terms

You must accept to continue

Learn how we protect your data

You can unsubscribe at any time

Feature Permissions

Grouped checkboxes with disabled states

App Permissions

Control what this app can access

Essential

Save files and preferences

Connect to the internet

Optional

Take photos and videos

Access your location for maps

Find friends using this app

Show alerts and reminders

Interactive Todo List

Task tracking with progress visualization

✓ Todo List

Track your daily tasks

Completed: ((($todo1 + $todo2) + $todo3) + $todo4) of 4

Bulk Delete

Select-all pattern with bulk delete - selected items are removed from view

Bulk Delete

Select-all pattern with bulk delete functionality

2.4 MB

1.8 MB

5.2 MB

12.1 MB

Filter Form

Multi-category filtering interface

Filter Options

Customize your search results

Categories

Price Range

Shipping

Settings with Validation

Form validation based on checkbox selections

Notification Settings

Choose how you want to be notified

Receive important updates via email

Get instant updates on your device

Critical alerts sent to your phone

Optional

Product updates and special offers

At least one notification method must be enabled

Marketing enabled

API Reference

Props

Prop Type Default Description
checked bool | None None Initial checked state of the checkbox
signal str | None auto-generated Datastar signal name for state management and reactive updates
label str - Label text for the checkbox (CheckboxWithLabel only)
helper_text str | None None Helper text displayed below the label
disabled bool False Whether checkbox is disabled
required bool False Whether checkbox is required for form validation
name str | None None Name attribute for form submission
cls str '' Additional CSS classes for styling