CheckboxField
▸ CheckboxField(props): null | ReactElement<any, string | JSXElementConstructor<any>>
Checkbox field with label and help message
Parameters
| Name | Type |
|---|---|
props | CheckboxFieldProps & RefAttributes<HTMLDivElement (opens in a new tab)> |
Returns
null | ReactElement<any, string | JSXElementConstructor<any>>
Example
example.tsx
<CheckboxField>Label</CheckboxField>import React from 'react' import { CheckboxField } from '@vtex/shoreline-components' export default function App() { return (<> <CheckboxField>Label</CheckboxField> </> )}
Defined in
node_modules/.pnpm/@types+react@18.2.14/node_modules/@types/react/ts5.0/index.d.ts:355