Components
Button
Code

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

NameType
propsButtonProps & RefAttributes<HTMLButtonElement (opens in a new tab)>

Returns

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

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>
</>
)}

Defined in

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