Debian Codegraph @

node/@patternfly/react-core/dist/js/components/HelperText/HelperTextItem.d.ts

raw
1 /// <reference types="react" />
2 export declare enum HelperTextItemVariant {
3 default = "default",
4 warning = "warning",
5 error = "error",
6 success = "success"
7 }
8 export interface HelperTextItemProps extends React.HTMLProps<HTMLDivElement | HTMLLIElement> {
9 /** Content rendered inside the helper text item. */
10 children?: React.ReactNode;
11 /** Additional classes applied to the helper text item. */
12 className?: string;
13 /** Sets the component type of the helper text item. */
14 component?: 'div' | 'li';
15 /** Variant styling of the helper text item. Will also render a default icon, which can be overridden
16 * with the icon prop.
17 */
18 variant?: 'default' | 'indeterminate' | 'warning' | 'success' | 'error';
19 /** Custom icon prefixing the helper text. This property will override the default icon when the variant property is passed in. */
20 icon?: React.ReactNode;
21 /** ID for the helper text item. The value of this prop can be passed into a form component's
22 * aria-describedby prop when you intend for only specific helper text items to be announced to
23 * assistive technologies.
24 */
25 id?: string;
26 /** Text that is only accessible to screen readers in order to announce the variant of a helper text item.
27 * This prop can only be used when the variant prop has a value other than "default".
28 */
29 screenReaderText?: string;
30 }
31 export declare const HelperTextItem: React.FunctionComponent<HelperTextItemProps>;
32 //# sourceMappingURL=HelperTextItem.d.ts.map