carbon-react
Version:
A library of reusable React components for easily building user interfaces.
26 lines (25 loc) • 1.03 kB
TypeScript
export interface StyledLabelProps {
/** If true, the component will be disabled */
disabled?: boolean;
/** Flag to configure component as mandatory */
isRequired?: boolean;
/** Flag to determine whether to use colours for dark backgrounds */
isDarkBackground?: boolean;
/** Set large font-size */
isLarge?: boolean;
}
declare const StyledLabel: import("styled-components").StyledComponent<"label", any, StyledLabelProps, never>;
export interface StyledLabelContainerProps {
/** Label alignment */
align?: "left" | "right";
/** When true, label is placed in line an input */
inline?: boolean;
/** Padding right, integer multiplied by base spacing constant (8) */
pr?: 1 | 2;
/** Padding left, integer multiplied by base spacing constant (8) */
pl?: 1 | 2;
/** Label width */
width?: number;
}
export declare const StyledLabelContainer: import("styled-components").StyledComponent<"div", any, StyledLabelContainerProps, never>;
export default StyledLabel;