Button
▸ Button(props
): null
| ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Buttons triggers allow users to identify and start the most important actions in a container.
Parameters
Name | Type |
---|---|
props | ButtonProps & RefAttributes <HTMLButtonElement (opens in a new tab)> |
Example
example.tsx
<Button>Action label</Button>
import React from 'react' import { Button } from '@vtex/shoreline-components' export default function App () { return ( <> <Button>Action label</Button> </> ) }