Components
Action
Code

Action

Action(props): null | ReactElement<any, string | JSXElementConstructor<any>>

Specific button used for contextual actions

Parameters

NameType
propsOmit (opens in a new tab)<ButtonProps, "variant"> & { iconOnly?: boolean ; label?: ReactNode ; vertical?: boolean } & RefAttributes<HTMLButtonElement (opens in a new tab)>

Returns

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

Example

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

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

Defined in

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