--- // Legend (.legend): marker + label, with an optional value. // Renders a link when `href` is given, a button when `button` is set, a span otherwise. interface Props { /** label text; the default slot is used instead when empty */ text?: string /** legend-value next to the label */ value?: string | number | undefined /** legend-unit after the value, e.g. "ms" or "GB" */ unit?: string | undefined /** lg: legend-lg, the label on top and a big value below */ size?: 'lg' | undefined /** legend-{color} on the item, shared by the marker and the hover background */ color?: string | undefined /** render a