UI Components
Molecules
Link Button

Link Button

Link Button is similar to a button, however acts as a link to navigate users between pages.

Overview

<LinkButton href="#">Link Button</LinkButton>

Import

Import the component from @faststore/ui

import { LinkButton } from '@faststore/ui'

Import Styles

import '@faststore/ui/src/components/molecules/LinkButton/styles.scss'

Usage

<LinkButton href="#">Link Button</LinkButton>

Props

NameTypeDescriptionDefault
Coming Soon

Design Tokens

This component inherits Button design tokens.


Nested Elements

Icon


Variants

This component inherits Button variants.

Primary

<LinkButton href="#" variant="primary">
  Link Button
</LinkButton>

Primary Inverse

<LinkButton href="#" variant="primary" inverse>
  Link Button
</LinkButton>

Secondary

<LinkButton href="#" variant="secondary">
  Link Button
</LinkButton>

Secondary Inverse

<LinkButton href="#" variant="secondary" inverse>
  Link Button
</LinkButton>

Tertiary

<LinkButton href="#" variant="tertiary">
  Link Button
</LinkButton>

Tertiary Inverse

<LinkButton href="#" variant="tertiary" inverse>
  Link Button
</LinkButton>

Disabled

<LinkButton href="#" disabled>
  Link Button
</LinkButton>

Small

<LinkButton variant="primary" size="small">
  Link Button
</LinkButton>

Customization

For further customization, you can use the following data attributes:

data-fs-link-button

This component inherits Button CSS selectors and styles.


Best Practices

✅ Do's

  • Use the LinkButton only to navigate the user between store pages. For general purposes, use the standard Button.