Renders a simple icon component.

Parameters:
NameTypeDescription
propsobject

Component props.

Properties
NameTypeDescription
customAttributesobject

Custom attributes for the component

customClassesstring | Array | object

Custom classes for the component.

hasDotboolean

Whether the component has a dot.

isStaticboolean

Whether the component is static.

labelstring

The label for the component.

pillboolean

Whether the component is a pill.

sizestring

The size for the component, one of sm, md, or lg.

spacingstring | number | Array | object

The spacing for the component, as a string, number, array, or object.

statusstring

The status for the component.

themestring

The theme for the component.

refobject | null

Ref to the component.

Since
  • 3.3.0
Returns:

The StatusIndicator component.

Type: 
JSX.Element
Example
import Icon from '@gravityforms/components/react/admin/elements/StatusIndicator';

return <StatusIndicator />;