Clickable
▸ Clickable(props
): null
| ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Represents clickable surfaces
Parameters
Name | Type |
---|---|
props | ClickableProps & RefAttributes <HTMLDivElement (opens in a new tab)> |
Returns
null
| ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Example
<Clickable>
Text <button>Click Me</button>
</Clickable>
import React from 'react' import { Clickable } from '@vtex/shoreline-components' export default function App() { return (<><Clickable> Text <button>Click Me</button></Clickable></>)}
Defined in
node_modules/.pnpm/@types+react@18.2.14/node_modules/@types/react/ts5.0/index.d.ts:355