Analytics

We measure which pages get used so we can improve the documentation. No cookies, no cross-site tracking. See our privacy notice.

Marigold
v18.1.0
Marigold
v18.1.0

Application

MarigoldProvider
RouterProvider

Layout

AppShellbeta
Aside
Aspect
Center
Columns
Container
Grid
Inline
Inset
OverflowRegionbeta
Pagebeta
Panelbeta
Scrollable
Split
Stack
Tiles

Actions

Buttonupdated
ButtonGroupbeta
Link
LinkButton
ToggleButtonbeta

Form

Autocomplete
Calendar
Checkbox
ComboBox
DateField
DatePicker
DateRangePickerbeta
FileField
Form
NumberField
Radio
RangeCalendaralpha
SearchField
SegmentedControlbeta
Select
SelectListupdated
Slider
Switchupdated
TagFieldbeta
TextArea
TextField
TimeField

Collection

Cardupdated
Table
ListViewbeta
Tag
ActionBaralpha

Navigation

Accordion
Breadcrumbs
Pagination
Sidebarbeta
Tabs
TopNavigationbeta

Overlay

ActionMenualpha
ContextualHelp
Dialog
Drawer
Menuupdated
Toastbeta
Tooltip

Content

Badge
Descriptionalpha
Divider
EmptyState
ErrorStatebeta
Headline
Keyboardbeta
List
Loader
SectionMessage
SVG
Text
TextValuealpha
Titlealpha

Formatters

DateFormat
NumericFormat

Hooks and Utils

cn
cva
extendTheme
parseFormData
useAsyncList
useLandmark
useListData
useTheme
VisuallyHidden
Components

LinkButton

Interactive component that resembels a button to help users navigate to new pages.

The <LinkButton> component provides a visually distinct, button-like element that functions as a navigational link. It combines the accessibility and semantics of a link with the appearance and interactivity of a button, making it ideal for scenarios where users need a clear call-to-action that leads to another page or resource.

Anatomy

A link button consists of a pressable area, often containing a textual label or icon, which users can press or activate using the Space or Enter keys.

ButtonIconLabelIcon-only
  • Button: The pressable area that navigates to the target.
  • Label: The text that names the destination.
  • Icon (optional): A leading icon paired with the label, or the sole visual in an icon-only link button.
  • Icon-only: A condensed square form for compact spaces. Always pair it with an aria-label so the destination stays accessible.

Appearance

The appearance of a component can be customized using the variant and size props. These props adjust the visual style and dimensions of the component, available values are based on the active theme.

Press me
PropertyTypeDescription
variantprimary | secondary | ghost | destructive | destructive-ghost | linkThe available variants of this component.
sizedefault | small | large | iconThe available sizes of this component.

The LinkButton shares the same visual variants as the Button component, applied to a navigational element.

VariantDescriptionWhen to use
primaryHigh-contrast, filled button that draws attention.The most important navigational action, like "Get started" or "Sign up".
secondaryNeutral button with a subtle border. This is the default variant.Supporting navigational actions that complement the primary, like "Learn more".
ghostTransparent button with no border or background.Low-emphasis navigation that should be available but not prominent.
destructiveRed filled button signaling a dangerous action.Navigation related to destructive flows, like going to a deletion confirmation page.
destructive-ghostRed text with no background.Destructive navigation that is not the primary focus of the current view.
linkStyled as an inline text link.Navigation that should visually blend with surrounding text.

Usage

A link button should be used whenever the primary user action is navigation. It is the ideal choice when you need the visual prominence of a button for a call-to-action that directs the user to a different page or URL. For example, a "Sign Up Now" or "Learn More" element that takes the user to a new registration or features page is a perfect use case. Using a link button ensures that standard browser behaviors, such as opening a link in a new tab or copying the address, are preserved.

In contrast, a regular button is meant for performing an action on the current page. You should use a regular button when the user is submitting a form, opening a modal window, toggling a setting, or saving data without changing the URL. Essentially, if the component's purpose is to do something on the current view, use a button. If it is meant to go somewhere else, use a link button.

Visual Twins

The link button is the button's visual twin, so it must follow all the same guidelines. The only difference is that it's a link used for navigation. View button guidelines

In context

<LinkButton> is the navigation flavor of <Button>. When dropped inside a <ButtonGroup>, or any container that publishes its own ButtonContext, it picks up the same variant and size cascade as a nested <Button>. The two coexist naturally in row-action clusters. Use <Button> for actions that fire on the current page (like "delete" or "archive"), and <LinkButton> for actions that navigate (like opening a detail page for editing).

Inside a ButtonGroup

<LinkButton> shares the full <Button> variant vocabulary. With no local variant, it inherits the group's cascade, which defaults to secondary, the same baseline as a standalone button. A local variant or size always wins over the group.

Props

Did you know? You can explore, test, and customize props live in Marigold's storybook. Watch the effects they have in real-time!
View LinkButton stories

Prop

Type

Accessibility props (4)

Prop

Type

DOM event handlers (63)

Prop

Type

Alternative components

  • Button: A component to invoke an action.
  • Link: A component to navigate to another page.
Last update: 8 minutes ago

Link

Interactive component to help users navigate to new pages.

ToggleButton

An action button that retains an active state.

© Reservix GmbH — Marigold Design System
ImpressumDatenschutzGitHubRSS

On this page

AnatomyAppearanceUsageIn contextPropsAlternative components