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.
Name | Type | Description | Default |
---|---|---|---|
before | () => void | A function that will be executed before redirecting the user. | - |
underline | none / hover / always | The underline style of the link element. | hover |
href | string | The href property of the link element. | - |
foreign | boolean | Allows 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.
Rule | Global Class | Description |
---|---|---|
root | .PrismaneLink-root | The container of the link component. |