Checkbox
▸ Checkbox(props
): null
| ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Checkbox controls allow users to make multiple independent choices in a form where there are at most five options and each option is binary.
Parameters
Name | Type |
---|---|
props | AriaCheckboxProps & RefAttributes <HTMLDivElement (opens in a new tab)> |
Example
example.tsx
<Checkbox>Label</Checkbox>
import React from 'react' import { Checkbox } from '@vtex/shoreline-components' export default function App () { return ( <> <Checkbox>Label</Checkbox> </> ) }