Loader
Last updated: 2.0.0 (21/01/2024)
Usage
import { Loader } from "@valence-ui/core";
function MyComponent() {
return (
<Loader />
)
}
Custom size & color
By default, the size and color of the Loader will be inherited from the ValenceProvider.
import { Loader } from "@valence-ui/core";
function MyComponent() {
return (
<Loader
size="lg"
color="blue"
/>
)
}
Props
Extends GenericProps
.
Property
Type
Description
size
ComponentSize
Sets element size class. Defaults to theme default.
color
CSSProperties["color"]
Color of the loader. Defaults to theme default.
Last updated
Was this helpful?