Back to Component Browser
Link
Quartzlib/quartz/components/Link/index.ts
Preview
Import
import { Link } from '@/lib/quartz';Props (7)
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| 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.... |
| variant | enum | optional | — | The variant of the link. Controls how the link will be displayed. |
| size | enum | optional | — | The size. Only affects button link variants. Matches behavior of the `<Button>` component. |
| startSlot | ReactNode | optional | — | A slot to center align another piece of content before the contents. Typically an SVG icon rendered as a react component. |
| innerContent | ReactNode | required | — | The primary content to display between the `startSlot` and `endSlot` |
| endSlot | ReactNode | optional | — | A slot to center align another piece of content after the contents. Typically an SVG icon rendered as a react component. |
| _quartzInternal_className | string | required | — | Override styles to apply to the root element |
Usage
Not used in any projects yet.