Skip to content

ZCheckbox

Checkbox input with label

Example

Import

tsx
import { ZCheckbox } from "zurto-ui";

Usage

tsx
import { ZCheckbox } from "zurto-ui";

function Example() {
  return (
    <>
      <ZCheckbox label="Accept terms and conditions" defaultChecked />
      <ZCheckbox label="Subscribe to newsletter" />
    </>
  );
}

Props

PropTypeDefaultDescription
labelstring-Checkbox label
checkedbooleanfalseChecked state
onChange(checked) => void-Change handler
disabledbooleanfalseDisable checkbox

Accessibility

  • ✅ Keyboard navigation support
  • ✅ ARIA attributes included
  • ✅ Screen reader friendly
  • ✅ Focus management

Released under the MIT License.