UNPKG

@engie-group/fluid-design-system-react

Version:

Fluid Design System React

25 lines (24 loc) 1.09 kB
import { StatusIndicatorProperties } from '@engie-group/fluid-types'; import React, { ComponentPropsWithoutRef } from 'react'; export type NJStatusIndicatorProps = StatusIndicatorProperties & ComponentPropsWithoutRef<'div'> & { /** * Label content displayed on the right of the status indicator. * It must be either a string or a valid descendant of `<p>` tag */ children?: React.ReactNode; /** * Visually hide the label. It will still be accessible to assistive technologies */ hideLabel?: boolean; }; export declare const NJStatusIndicator: React.ForwardRefExoticComponent<StatusIndicatorProperties & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & { /** * Label content displayed on the right of the status indicator. * It must be either a string or a valid descendant of `<p>` tag */ children?: React.ReactNode; /** * Visually hide the label. It will still be accessible to assistive technologies */ hideLabel?: boolean; } & React.RefAttributes<HTMLDivElement>>;