React
Styling
Skel UI provides styling through CSS variables, Component props and CSS styling.
CSS variables
Overrides the skeleton's default colors and border-radius with CSS variables.
Component props
The width, height and radius of the skeleton for each element can be modified with three special props.
Name | Type | Description |
---|---|---|
sw | string | Width of the skeleton |
sh | string | Height of the skeleton |
sr | string | Overrides the default skeleton border-radius |
CSS Styling
Skel UI apply a data-loading attribute which can be used to apply styles.