Back to Component Browser

Link

Quartz

lib/quartz/components/Link/index.ts

Import

import { Link } from '@/lib/quartz';

Props (7)

NameTypeRequiredDefaultDescription
children({ rootStyleProps, content, }: { rootStyleProps: Record<string, string>; content: ReactNode; }) => ReactElement<unknown, string | JSXElementConstructor<any>>required—A function which provides the style props to spread on the root link element and the inner content to render inside the link....
variantenumoptional—The variant of the link. Controls how the link will be displayed.
sizeenumoptional—The size. Only affects button link variants. Matches behavior of the `<Button>` component.
startSlotReactNodeoptional—A slot to center align another piece of content before the contents. Typically an SVG icon rendered as a react component.
innerContentReactNoderequired—The primary content to display between the `startSlot` and `endSlot`
endSlotReactNodeoptional—A slot to center align another piece of content after the contents. Typically an SVG icon rendered as a react component.
_quartzInternal_classNamestringrequired—Override styles to apply to the root element

Usage

Not used in any projects yet.