Components
Checkbox
Code

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

NameType
propsCheckboxProps & RefAttributes<HTMLDivElement (opens in a new tab)>

Returns

null | ReactElement<any, string | JSXElementConstructor<any>>

Example

example.tsx
<Checkbox>Label</Checkbox>
import React from 'react'
import { Checkbox } from '@vtex/shoreline-components'

export default function App() {
return (<>
<Checkbox>Label</Checkbox>
</>
)}

Defined in

node_modules/.pnpm/@types+react@18.2.14/node_modules/@types/react/ts5.0/index.d.ts:355