Code

The Loader component usage and API reference.

API

This component extends all the native HTML 'div' tag attributes. So you can use any native div prop on the component, for example, the title attribute.

Props
Data Type
Required

className

string

size

'default' | 'medium' | 'large'

size

The size prop of the slider component can be used to define the height and width of the loader element displayed while the slider is loading. By default, the value of this prop is set to 'default'. However, you can set it to one of the available values to customize the size of the loader to suit your needs.

Example

Live Code

Last updated