Blossom UI

Scroll area

Scroll area component with slim custom scrollbars that look the same in every browser, vertical, horizontal or both.

How to use it

Run npx @blossomui/react add scroll-area, or copy src/components/UI/ScrollArea/ScrollArea.tsx into your React project and import it.

import { ScrollArea } from './components/ui/ScrollArea'

Props

ScrollAreaProps

PropTypeDescription
children (required)ReactNode
orientation'vertical' | 'horizontal' | 'both'Which directions scroll.
visibility'hover' | 'scroll' | 'always'When the bars are visible: `hover` while the pointer is over the area, `scroll` while it moves, `always` all the time.
colorstringAccent color of the bar when it is dragged: any CSS color. Without it the component uses `--blossom-accent`.
labelstringAccessible name of the scrollable region.
classNamestringGive it a size here, for example `h-64`. The content scrolls inside it.

Getting started

  • Introduction
  • Installation
  • Changelog

Customization

  • Colors
  • Brand color
  • Texts and translation

Components

  • Accordion
  • Alert dialog
  • Alerts
  • Avatar
  • Badges
  • Banner
  • Breadcrumb
  • Buttons
  • Calendar
  • Cards
  • Carousel
  • Charts
  • Chip input
  • Collapsible
  • Color picker
  • Combobox
  • Command palette
  • Context menu
  • Copy button
  • Date picker
  • Drawer
  • Dropdown
  • Empty state
  • File upload
  • Footer
  • Forms
  • Hover card
  • Jumbotron
  • KBD
  • Menubar
  • Modal
  • Navbar
  • Navigation menu
  • Number input
  • OTP input
  • Pagination
  • Popover
  • Pricing
  • Progress
  • Rating
  • Resizable panels
  • Scroll area
  • Segmented control
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Spinners
  • Stats
  • Stepper
  • Survey
  • Table
  • Tabs
  • Time picker
  • Timeline
  • Timer button
  • Toasts
  • Tooltip
  • Transfer list
  • Tree