Develop ultra fast with Prismane 🎉

Link API

Learn about the Link component's props and CSS classes.

Import

import { LinkProps } from "@prismane/core";

Props

Link extends Square component's props.

NameTypeDescriptionDefault
before() => voidA function that will be executed before redirecting the user.-
underlinenone / hover / alwaysThe underline style of the link element.hover
hrefstringThe href property of the link element.-
foreignbooleanAllows you to control whether the URL should be opened in the same page or in a new tab/window.false

CSS

Link extends Square component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneLink-rootThe container of the link component.