carbon-react
Version:
A library of reusable React components for easily building user interfaces.
28 lines (27 loc) • 1.1 kB
TypeScript
import React from "react";
export interface HintTextProps {
/** The alignment of the hint text */
align?: "left" | "right";
/** Children elements */
children?: React.ReactNode;
/** Sets the font weight for the hint text */
fontWeight?: string;
/** Sets the id for the component. */
id?: string;
/** Indicates whether the parent component is inline. */
isComponentInline?: boolean;
/** Indicates whether the parent component has a dark background. */
isDarkBackground?: boolean;
/** Indicates whether the parent component is disabled. */
isDisabled?: boolean;
/** Margin bottom for the hint text */
marginBottom?: string;
/** Margin top for the hint text */
marginTop?: string;
/** Max width for the hint text */
maxWidth?: string;
/** Set large font-size */
isLarge?: boolean;
}
export declare const HintText: ({ align, children, fontWeight, id, isComponentInline, isDarkBackground, isDisabled, marginBottom, marginTop, maxWidth, isLarge, }: HintTextProps) => React.JSX.Element | null;
export default HintText;