LinkBox
▸ LinkBox(props): null | Element
A container that acts as a link. It allows text selection and stop its children event propagation.
Parameters
| Name | Type |
|---|---|
props | LinkBoxProps & RefAttributes<HTMLDivElement (opens in a new tab)> |
Returns
null | Element
Example
<LinkBox href="">
<div>
<a>...</a>
</div>
<button>...</button>
</LinkBox>import React from 'react' import { LinkBox } from '@vtex/shoreline-components' export default function App() { return (<><LinkBox href=""> <div> <a>...</a> </div> <button>...</button></LinkBox></>)}
Defined in
packages/utils/dist/index.d.ts:183