scroll-area
shadcn-solidjs/scroll-areaFreeComponent
shadcn-solidjs publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn-solidjs on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://shadcn-solidjs.com/r/scroll-area.jsonSource
1import { cn } from "~/lib/utils.ts";23import { type Component, type ComponentProps, splitProps } from "solid-js";45// Kobalte ships no scroll-area primitive, so this follows upstream's6// react-aria base rather than the radix one: the native scrollbar is styled7// with scrollbar-width and scrollbar-color instead of a rendered viewport,8// scrollbar and thumb. There is no ScrollBar export for the same reason.9const ScrollArea: Component<ComponentProps<"div">> = (props) => {10 const [local, others] = splitProps(props, ["class"]);1112 return (13 <div14 data-slot="scroll-area"15 class={cn(16 "[scrollbar-color:var(--color-border)_transparent] [scrollbar-width:thin] relative overflow-auto outline-none focus-visible:outline-1 focus-visible:ring-ring/50 focus-visible:ring-[3px]",17 local.class,18 )}19 {...others}20 />21 );22};2324export { ScrollArea };
More from shadcn-solidjs
All 85 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn-solidjs | Components | Free | 1 dep | |
| alertalert | shadcn-solidjs | Components | Free | 2 deps | |
| alert-dialogalert-dialog | shadcn-solidjs | Components | Free | 2 deps | |
| aspect-ratioaspect-ratio | shadcn-solidjs | Components | Free | no deps | |
| attachmentattachment | shadcn-solidjs | Components | Free | 2 deps | |
| avataravatar | shadcn-solidjs | Components | Free | 1 dep | |
| badgebadge | shadcn-solidjs | Components | Free | 2 deps | |
| breadcrumbbreadcrumb | shadcn-solidjs | Components | Free | 1 dep |
