# Checkbox
URL: /components/checkbox
Source: https://github.com/daangn/seed-design/blob/dev/docs/content/components/checkbox.mdx
A component that allows the user to select one or more options. Used for selecting multiple items in a list or for optional tasks such as agreeing to terms.
A Checkbox Group can be used inside a Field to serve as a Checkbox Group Field.
## Anatomy
![Anatomy image of Checkbox. Consists of a Checkmark and a Label.]()
Checkbox consists of a Checkmark and a Label. The Checkmark is provided as an individual component, so it can be freely combined and used.
## Properties
### Size, Weight
![Checkbox Size and Weight Property - Medium, Large sizes and Regular, Bold weights]()
Checkbox is provided in Medium and Large sizes. The Weight can be adjusted depending on whether emphasis is needed or whether it is used as a group.
### Tone
![Checkbox Tone Property - Neutral]()
Checkbox can use Neutral by default.
### Shape
![Checkbox Shape Property - Square, Ghost]()
Checkbox is provided in two shapes: Square and Ghost. The Checkmark is also provided the same way, so refer to it.
### State
![Checkbox State - Selected, Unselected, Indeterminate states combined with Enabled, Pressed, Disabled]()
Checkbox has Selected, Unselected, and Indeterminate states, and each of these states is expressed in combination with Enabled, Disabled, and Pressed states depending on the user's interaction.
## Guidelines
### Checkbox touch target
![Checkbox Touch Target area - area including the Label]()
![Checkbox Touch Target area - the entire Row area]()
For Checkbox, the area including the Label acts as the target. When used in combination with a Checkmark, as in a List, the entire Row should be the target area.
### Using a Checkbox group
![Example of using a Checkbox Group - parent Checkbox and child Checkbox composition: no items selected]()
![Example of using a Checkbox Group - parent Checkbox and child Checkbox composition: all items selected]()
![Example of using a Checkbox Group - parent Checkbox and child Checkbox composition: some items selected]()
![Example of using a Checkbox Group - composition without a parent Checkbox]()
![Example of using a Checkbox Group - applied]()
Checkbox can group multiple items together. When grouped, place a parent Checkbox at the top as needed.
Selecting the parent Checkbox selects all child Checkboxes. If only some child Checkboxes are selected, the parent Checkbox is shown in the Indeterminate state.
### Deciding the Shape
![Checkbox Shape selection guide - Ghost]()
![Checkbox Shape selection guide - Square]()
If the item is not a required selection and there are 3 or fewer items, using Ghost is recommended. If it is a required selection and the user must be aware of it, use the more explicit Square.
### Checkbox vs. Switch
![Comparison table of Checkbox and Switch]()
Checkbox and [Switch](/components/switch) are components that indicate whether a user has made a selection.
| Property | Checkbox | Switch |
| ------------------------------- | ----------------------------------------------------------------------------- | --------------------------------------------------------------- |
| **Applying the selected value** | The value is saved only after performing an action such as Save (recommended) | Applied immediately without any additional action (recommended) |
| **Item composition method** | Can be listed as multiple items in one category | Recommended to be composed as individual items |
| **Sub-item composition** | The parent can select/deselect all sub-items | No relationship between the parent and sub-items |
## Specification
### Checkbox Group
Component spec (JSON): /rootage/components/checkbox-group.json
### Checkbox
Component spec (JSON): /rootage/components/checkbox.json
### Checkmark
Component spec (JSON): /rootage/components/checkmark.json