UNPKG

dgz-ui

Version:

Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript

20 lines 1.31 kB
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area'; import * as React from 'react'; /** * ScrollArea - Container providing custom scrollbars for overflowing content. * @returns {JSX.Element} The rendered ScrollArea component. * @param {object} props - The properties for the component. * @param {string} [props.className] - Additional classes for the scroll area. * @param {React.ReactNode} [props.children] - The content to be rendered inside the scroll area. */ declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>; /** * ScrollBar - Styled scrollbar that adapts to orientation. * @returns {JSX.Element} The rendered ScrollBar component. * @param {object} props - The properties for the component. * @param {string} [props.className] - Additional classes for the scrollbar. * @param {'vertical' | 'horizontal'} [props.orientation='vertical'] - The orientation of the scrollbar. */ declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>; export { ScrollArea, ScrollBar }; //# sourceMappingURL=scroll-area.d.ts.map