UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

18 lines (17 loc) 787 B
import { BetterSystemStyleObject, SxProp } from '../sx'; export type LabelProps = { /** The color of the label */ variant?: LabelColorOptions; /** How large the label is rendered */ size?: LabelSizeKeys; } & SxProp; export type LabelColorOptions = 'default' | 'primary' | 'secondary' | 'accent' | 'success' | 'attention' | 'severe' | 'danger' | 'done' | 'sponsors'; type LabelSizeKeys = 'small' | 'large'; export declare const variants: Record<LabelColorOptions, BetterSystemStyleObject>; declare const Label: import("styled-components").StyledComponent<"span", any, { /** The color of the label */ variant?: LabelColorOptions | undefined; /** How large the label is rendered */ size?: LabelSizeKeys | undefined; } & SxProp, never>; export default Label;