Link
The Link
component behaves as a regular anchor tag (<a>
), but can be used as any HTML tag.
Import​
import { Link } from '@faststore/ui'
Usage​
As div
​
A span inside the Link componentA link inside the Link component
Props​
The Link
component supports all attributes supported by the tag chosen through the as
prop.
For example, if someone wants to use a wrapper for any external link component (i.e., Next.js Link
or Gatsby Link
), the FastStore UI Link
component can be used with the as="div"
prop.
Besides those attributes, the following props are also supported:
testId
string
Description
ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
Default value
store-link
Customization​
data-store-link