Components
LinkBox
Code

LinkBox

LinkBox(props): null | Element

A container that acts as a link. It allows text selection and stop its children event propagation.

Parameters

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