import { useState } from 'react'; import { Screen, View, Text, Checkbox } from '../index'; export const CheckboxExamples = () => { const [basicChecked, setBasicChecked] = useState(false); const [primaryChecked, setPrimaryChecked] = useState(true); const [successChecked, setSuccessChecked] = useState(false); const [errorChecked, setErrorChecked] = useState(false); const [indeterminateChecked, setIndeterminateChecked] = useState(false); return ( Checkbox Examples {/* Basic Checkbox */} Basic Checkbox {}} label="Checked checkbox" /> {}} label="Unchecked checkbox" /> {/* Checkbox Sizes */} Sizes {}} label="Small checkbox" /> {}} label="Medium checkbox" /> {}} label="Large checkbox" /> {/* Checkbox Intents */} Intents {}} label="Neutral checkbox" /> {}} label="Warning checkbox" /> {}} label="Info checkbox" /> {/* Checkbox Variants */} Variants {}} label="Default variant" /> {}} label="Outlined variant" /> {/* Checkbox States */} States {}} label="Normal state" /> {}} label="Checked state" /> {}} label="Disabled checked" /> {}} label="Disabled unchecked" /> {/* Checkbox with Custom Children */} Custom Content {}} > Custom label with styled text {}} > Multi-line Label This checkbox has a more complex label with multiple lines {/* Checkbox with Helper Text and Errors */} With Helper Text {}} label="Checkbox with helper text" helperText="This is some helpful information" /> {}} label="Checkbox with error" error="This field is required" intent="danger" /> {}} label="Required checkbox" required helperText="This checkbox is required" /> ); };