Components
Clickable
Code

Clickable

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

Represents clickable surfaces

Parameters

NameType
propsClickableProps & 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