Link
▸ Link(props
): null
| ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Anchor component
Parameters
Name | Type |
---|---|
props | LinkProps & RefAttributes <HTMLAnchorElement (opens in a new tab)> |
Returns
null
| ReactElement
<any
, string
| JSXElementConstructor
<any
>>
Example
<Link href="https://vtex.com">Go to VTEX</Link>
import React from 'react' import { Link } from '@vtex/shoreline-components' export default function App() { return (<><Link href="https://vtex.com">Go to VTEX</Link></>)}
Defined in
node_modules/.pnpm/@types+react@18.2.14/node_modules/@types/react/ts5.0/index.d.ts:355