Back to Component Browser
Legend
Quartzlib/quartz/components/Legend/index.ts
Preview
Import
import { Legend } from '@/lib/quartz';Props (5)
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| children | ReactNode | required | — | The content of the underlying `<legend>` element. |
| marginBottomUnits | SpacingUnit | optional | 0 | The number of `margin-bottom` spacing units to apply on the `<legend>`. |
| variant | enum | optional | primary | Whether the `labelPrimary` or `labelSecondary` typography preset should be used.... |
| ref | Ref<HTMLLegendElement> | optional | — | Allows getting a ref to the component instance.... |
| key | Key | optional | — | — |
Usage
Not used in any projects yet.