alinea
Version:
[](https://npmjs.org/package/alinea) [](https://packagephobia.com/result?p=alinea)
41 lines (40 loc) • 1.29 kB
TypeScript
import { Label } from 'alinea/core/Label';
import { ComponentType, PropsWithChildren } from 'react';
export type LabelHeaderProps = {
label: Label;
help?: string;
optional?: boolean;
size?: 'small' | 'medium' | 'large';
focused?: boolean;
icon?: ComponentType;
};
export declare const LabelHeader: import("react").NamedExoticComponent<LabelHeaderProps>;
export type LabelProps = PropsWithChildren<{
label?: Label;
asLabel?: boolean;
help?: string;
optional?: boolean;
width?: number;
inline?: boolean;
collection?: boolean;
focused?: boolean;
size?: 'small' | 'medium' | 'large';
icon?: ComponentType;
empty?: boolean;
}>;
/** Label for an input */
export declare const InputLabel: import("react").ForwardRefExoticComponent<{
label?: string | undefined;
asLabel?: boolean | undefined;
help?: string | undefined;
optional?: boolean | undefined;
width?: number | undefined;
inline?: boolean | undefined;
collection?: boolean | undefined;
focused?: boolean | undefined;
size?: "small" | "medium" | "large" | undefined;
icon?: ComponentType | undefined;
empty?: boolean | undefined;
} & {
children?: import("react").ReactNode;
} & import("react").RefAttributes<HTMLElement>>;