<Busy> Component
<Busy> represents counters or labels.
Here the demo:
<Busy> Component<Busy> represents counters or labels.
Here the demo:
<Busy> ComponentThere are 2 ways to install <Busy> component into your react app project:
expanded PropertyExpands/Collapses the <Busy>.
The possible values are:
undefinedtruefalseHere the preview:
<Busy expanded={true}>
lazy PropertyDetermines whenever the <Busy>'s children should be rendered or not when the <Busy expanded={false}>.
The possible values are:
undefinedfalsetrueDetermines how the <Busy> should be floating on the target DOM reference.
floatingOn PropertyDetermines the target DOM reference where the <Busy> should be floating on.
If not set (undefined), the <Busy> becomes a normal element flow.
Here the preview:
floatingPlacement PropertyDetermines the location where the <Busy> should be floating on the target DOM reference.
Here the preview:
floatingPlacement='top'floatingStrategy PropertyDetermines the technical strategy how the <Busy> can float.
In most cases, you should not worry about the detail mechanism how the <Busy> can float.
The possible values are:
undefined'absolute''fixed'floatingAutoFlip PropertyAutomatically flips the floatingPlacement to opposite direction when the <Busy> is about to be clipped.
The possible values are:
undefinedtruefalseHere the preview:
floatingAutoShift PropertyAutomatically shifts the floatingPlacement to nearest safe position when the <Busy> is about to be clipped.
The possible values are:
undefinedtruefalseHere the preview:
floatingOffset PropertyThe distance (in pixel) between the <Busy> and the target DOM reference.
The possible values are:
undefined0Here the preview:
<Busy floatingOffset={0}>
floatingShift PropertyThe distance (in pixel) between the <Busy> and the default floatingPlacement location.
The possible values are:
undefined0Here the preview:
<Busy floatingShift={0}>
onFloatingUpdate PropertySets a callback function to be called when the <Busy> updates the position relative to the target DOM reference.
The callback function parameters:
event: FloatingPositionThe alternative appearances of the <Busy> layout without changing the <Busy>'s functionality.
size PropertyDefines the alternative size of the <Busy>.
The possible values are:
undefined'sm''md''lg'Here the preview:
theme PropertyDefines the contextual theme of the <Busy>.
The possible values are:
undefined'primary''secondary''success''info''warning''danger''light''dark'Here the preview:
gradient PropertyActivates a 3D mode of the <Busy>.
The possible values are:
undefined'inherit'truefalseHere the preview:
outlined PropertyActivates an outlined mode (background-less, contrast foreground, and contrast border) of the <Busy>.
The possible values are:
undefined'inherit'truefalseHere the preview:
mild PropertyActivates a mild mode (mild background, contrast foreground, and contrast border) of the <Busy>.
The possible values are:
undefined'inherit'truefalseHere the preview:
nude PropertyActivates an nude mode (background-less, padding-less, and border-less) of the <Busy>.
The possible values are:
undefinedtruefalseHere the preview:
Because <Busy> is made from <Badge>, so all properties from <Badge> are inherited.
There are several variables of <Busy> you can customize. Changing the variables affects all <Busy> instance and other components that depend on <Busy>.
Here the exposed variables:
The example of accessing, modifying, & adding variables: