mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-25 06:49:15 +01:00
28 lines
625 B
TypeScript
28 lines
625 B
TypeScript
import * as React from 'react';
|
|
|
|
import { ColProps } from './Col';
|
|
|
|
import { BsPrefixComponent } from './helpers';
|
|
|
|
interface FormLabelBaseProps {
|
|
htmlFor?: string;
|
|
innerRef?: React.LegacyRef<this>;
|
|
srOnly?: boolean;
|
|
}
|
|
|
|
export interface FormLabelOwnProps extends FormLabelBaseProps {
|
|
column?: false;
|
|
}
|
|
|
|
export interface FormLabelWithColProps extends FormLabelBaseProps, ColProps {
|
|
column: true;
|
|
}
|
|
|
|
export type FormLabelProps = FormLabelWithColProps | FormLabelOwnProps;
|
|
|
|
declare class FormLabel<
|
|
As extends React.ElementType = 'label'
|
|
> extends BsPrefixComponent<As, FormLabelProps> {}
|
|
|
|
export default FormLabel;
|