import * as React from 'react'; import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area'; /** * Cross-platform styled scrollable area. * * @description * Replaces the native OS scrollbar (which looks different on Windows/macOS/Linux) * with a consistent, smooth, styled scrollbar across all platforms. * * @ai-rules * 1. NEVER use `overflow-auto` or `overflow-y-auto` directly in complex modal layouts (e.g., ``) — use ``. * 2. The root element MUST have a fixed height or `max-h-` class — without it, the area will grow infinitely. */ interface ScrollAreaProps extends React.ComponentProps { /** Aria-label for the scrollable viewport region. @default "Região rolável" */ viewportLabel?: string; } declare function ScrollArea({ className, children, viewportLabel, ...props }: ScrollAreaProps): React.JSX.Element; declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps): React.JSX.Element; export { ScrollArea, ScrollBar }; export type { ScrollAreaProps };