# Checkbox A versatile Checkbox, managing state, context, and styling. ```jsx featured Accept Terms ``` ```css preview .checkbox-root[data-variant="outlined"] { display: flex; flex-direction: row; gap: calc(12px * var(--lcs-spacing, 1)); cursor: pointer; &:not([data-align]) { align-items: center; } &[data-disabled="true"], &[data-readonly="true"] { cursor: not-allowed !important; } &[data-disabled="true"] { opacity: 0.6; } } .checkbox-indicator[data-variant="outlined"] { --checkbox-color: var(--color, var(--primary)); position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: calc(20px * var(--lcs-spacing, 1)); width: calc(20px * var(--lcs-spacing, 1)); height: calc(20px * var(--lcs-spacing, 1)); border: 1px solid transparent; border-radius: max(5px, var(--lcs-radius, 0px)); overflow: hidden; transition: background-color 100ms, border-color 100ms; background-color: rgba(var(--panel-color), 0.8); &:not([data-checked="true"]) { border-color: rgb(var(--border-color)); } &[data-checked="true"], &[data-indeterminate="true"] { border-color: rgb(var(--checkbox-color)); & > svg > path { fill: rgb(var(--checkbox-color)); } } &[data-hovered="true"]:not([data-disabled="true"], [data-readonly="true"]) { border-color: rgba(var(--checkbox-color), 0.7); } &:focus:not([data-disabled="true"], [data-readonly="true"]) { outline: 1px solid rgba(var(--checkbox-color), 0.9); border-color: rgba(var(--checkbox-color), 0.7); } } ``` [View Source](https://github.com/LocusInc/locus-ui/tree/main/packages/locus-ui/src/components/checkbox) ## Anatomy ```jsx code no-header ``` ## Examples ### Variants Checkbox components come with three built in variants, `solid`, `outlined`, and `muted`. ```jsx {["outlined", "solid", "muted"].map((variant) => ( {variant} ))} ``` ### Label Positions The label element `