Navigation
ScrollProgress
client23.25 kB
@stellaria/nebula-webScrollProgressPropsPreview
Preview
Props
9| Prop | Type | Default |
|---|---|---|
className | string | — |
color | ColorExtended | "primary" |
height | number | 3 |
label | string | "Reading progress" |
onProgress | ((value: number) => void) | — |
position | "top" | "bottom" | "static" | "top" |
radius | "sm" | "full" | "none" | "none" |
target The element whose scroll is tracked. Without it, the document. | RefObject<HTMLElement | null> | — |
withTrack | boolean | false |
Slot props
1Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
barProps The advancing bar. Its width comes from a variable written on the root, not here. | BoxSlotProps | — |
Also accepts
On top of its own props, this component forwards these groups.
Style props · 127