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>>requiredA function which provides the style props to spread on the root link element and the inner content to render inside the link....
variantenumoptionalThe variant of the link. Controls how the link will be displayed.
sizeenumoptionalThe size. Only affects button link variants. Matches behavior of the `<Button>` component.
startSlotReactNodeoptionalA slot to center align another piece of content before the contents. Typically an SVG icon rendered as a react component.
innerContentReactNoderequiredThe primary content to display between the `startSlot` and `endSlot`
endSlotReactNodeoptionalA slot to center align another piece of content after the contents. Typically an SVG icon rendered as a react component.
_quartzInternal_classNamestringrequiredOverride styles to apply to the root element

Usage

Not used in any projects yet.