Skip to main content

Link

The Link component is built on top of Next.js's Link component. It supports extensible style variants and can render its content as a child component maintaining consistent link behavior and styling.

Examples

Default

Unstyled

asChild with Button

Props

PropertyDescriptionValues
hrefDestination URLString
classNameCustom CSS classes for stylingString
variantControls the visual style of the link
  • default
  • unstyled
sizeReserved for controlling the size of the link
  • default
asChildRenders the link as a child slotBoolean
childrenThe content inside the linkReactNode
propsAdditional properties from Next.js LinkNextLinkProps

Customization

The approach for customization will vary depending on if the customization is intended to be global for all consumers of the UI component or if it is only an override for a particular instance.

  • If the customization is necessary for all use cases, update the component source code in the UI library package directly.
  • Otherwise, you can pass className overrides for specific instances.