UNPKG

@primer/react-brand

Version:

Primer Brand is a GitHub's design system for creating React-based marketing websites and digital experiences.

20 lines (19 loc) 1.06 kB
import React, { type HTMLAttributes } from 'react'; import type { FormValidationStatus } from '..'; export type ControlGroupProps = HTMLAttributes<HTMLFieldSetElement>; export type ControlGroupLabelProps = { visuallyHidden?: boolean; } & HTMLAttributes<HTMLLegendElement>; export type ControlGroupCaptionProps = HTMLAttributes<HTMLSpanElement>; export type ControlGroupValidationProps = { variant: FormValidationStatus; } & HTMLAttributes<HTMLSpanElement>; export declare const ControlGroup: React.ForwardRefExoticComponent<ControlGroupProps & React.RefAttributes<HTMLFieldSetElement>> & { Label: React.ForwardRefExoticComponent<{ visuallyHidden?: boolean; } & React.HTMLAttributes<HTMLLegendElement> & React.RefAttributes<HTMLLegendElement>>; Caption: React.ForwardRefExoticComponent<ControlGroupCaptionProps & React.RefAttributes<HTMLSpanElement>>; Validation: React.ForwardRefExoticComponent<{ variant: FormValidationStatus; } & React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>; };