@primer/react
Version:
An implementation of GitHub's Primer Design System using React
22 lines (21 loc) • 480 B
TypeScript
import React from "react";
//#region src/internal/components/InputLabel.d.ts
type BaseProps = {
disabled?: boolean;
required?: boolean;
requiredText?: string;
requiredIndicator?: boolean;
visuallyHidden?: boolean;
id?: string;
className?: string;
};
type LabelProps = BaseProps & {
htmlFor?: string;
as?: 'label';
};
type LegendOrSpanProps = BaseProps & {
as: 'legend' | 'span';
htmlFor?: undefined;
};
//#endregion
export { LabelProps, LegendOrSpanProps };