carbon-react
Version:
A library of reusable React components for easily building user interfaces.
84 lines (83 loc) • 1.99 kB
TypeScript
export interface CommonTextboxArgs {
prefix: string;
fieldHelp: string;
label: string;
labelHelp: string;
placeholder: string;
}
export declare const getCommonTextboxArgs: (isNewValidation?: boolean, autoFocusDefault?: boolean, disabledDefault?: boolean) => {
size: string;
inputIcon: undefined;
required: boolean;
characterLimit: undefined;
error: string;
warning: string;
fieldHelp?: string | undefined;
labelInline?: boolean | undefined;
labelWidth?: number | undefined;
inputWidth?: number | undefined;
labelAlign?: undefined;
tooltipId?: string | undefined;
disabled: boolean;
readOnly: boolean;
autoFocus: boolean;
prefix: string;
label: string;
labelHelp: string;
placeholder: string;
adaptiveLabelBreakpoint: undefined;
};
export declare const getCommonTextboxArgsWithSpecialCharacters: (args: CommonTextboxArgs) => {
prefix: string;
fieldHelp: string;
label: string;
labelHelp: string;
helpAriaLabel: string;
placeholder: string;
};
export declare const commonTextboxArgTypes: (isNewValidation?: boolean) => {
adaptiveLabelBreakpoint: {
control: {
type: string;
};
};
labelWidth?: {
control: {
type: string;
min: number;
max: number;
step: number;
};
} | undefined;
inputWidth?: {
control: {
type: string;
min: number;
max: number;
step: number;
};
} | undefined;
tooltipId?: {
control: {
type: string;
};
} | undefined;
size: {
options: string[];
control: {
type: string;
};
};
inputIcon: {
options: string[];
control: {
type: string;
};
};
labelAlign: {
options: string[];
control: {
type: string;
};
};
};