Skip to main content

Loader

The Loader provides visual feedback to the user that an action is underway, or complete.

Import

// with @dhl-official/react-library:
import { DhlLoader } from "@dhl-official/react-library"
// with @dhl-official/ui-libraries/react-library:
import { DhlLoader } from "@dhl-official/ui-libraries/react-library"

Code

<DhlLoader></DhlLoader>

Interactive Demo

Readme

Properties

PropertyAttributeDescriptionTypeDefault
dataClassNamedata-class-nameAn optional prop for the class of the root element.stringundefined
dataIddata-idAn optional prop. Gives a valid HTML ID attribute value for the component.stringdhl-loader-${getRandomString()}
dataTestiddata-testidAn optional prop. The test id attached to the component as a data-testid attribute.stringundefined
sizesizeAn optional size prop for the component."lg" \| "sm" \| "xl"DHL_LOADER.SIZE.LG
typetypeAn optional prop defining the size variant of the Loader"ring" \| "ring-done" \| "ring-dual"DHL_LOADER.TYPE.RING
variantvariantAn optional prop to select a component design variant."primary" \| "success"DHL_LOADER.VARIANT.PRIMARY

Dependencies

Depends on

Graph


Built by DHL User Interface Library Team!