Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

ScrollArea

ScrollArea is a component that displays a customized scrollbar.

Source@yamada-ui/scroll-area

Theming

The ScrollArea is a single part component.

export const ScrollArea: ComponentStyle<"ScrollArea"> = {
baseStyle: {
"@-moz-document url-prefix()": {
scrollbarColor: "whiteAlpha.600 transparent",
_dark: {
scrollbarColor: "whiteAlpha.600 transparent",
},
_light: {
scrollbarColor: "whiteAlpha.600 transparent",
},
},
outline: 0,
_dark: {
_scrollbarThumb: {
bg: "whiteAlpha.600",
bgClip: "padding-box",
_nativeHover: {
bg: "whiteAlpha.800",
bgClip: "padding-box",
},
},
},
_focusVisible: {
boxShadow: "inline",
},
_scrollbar: {
h: "3",
w: "3",
},
_scrollbarButton: {},
_scrollbarCorner: {
bg: "transparent",
},
_scrollbarThumb: {
bg: "blackAlpha.600",
bgClip: "padding-box",
border: "3px solid transparent",
rounded: "full",
_nativeHover: {
bg: "blackAlpha.800",
bgClip: "padding-box",
},
},
_scrollbarTrack: {
bg: "transparent",
},
},
}
Copied!

Edit this page on GitHub

PreviousDockableNextInfiniteScrollArea