Carregando…
Carregando…
Carregando…Custom scrollable container with styled scrollbar, max-height/width and orientation.
$ npx kikitocn add scroll-area@/lib/utilsimport { ScrollArea } from "@/components/ui/cn/scroll-area/ScrollArea";
export function ScrollAreaExample() {
return (
<ScrollArea />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
children* | ReactNode | — | Conteúdo com scroll |
orientation | 'vertical' | 'horizontal' | 'both' | 'vertical' | Direção do scroll permitido |
maxHeight | number | string | undefined | Altura máxima antes de ativar scroll vertical |
maxWidth | number | string | undefined | Largura máxima antes de ativar scroll horizontal |
Scroll Area — thin custom scrollbar with webkit/firefox styling