UNPKG

@kitn.ai/ui

Version:

Framework-agnostic, Shadow-DOM web components for building AI chat interfaces — works in React, Vue, Angular, Svelte, or plain HTML. Authored in SolidJS.

10 lines (9 loc) 472 B
import { JSX } from 'solid-js'; export type ScrollOrientation = 'vertical' | 'horizontal' | 'both'; export interface ScrollAreaProps extends JSX.HTMLAttributes<HTMLDivElement> { children: JSX.Element; /** Which axis scrolls. `vertical` (default) · `horizontal` · `both`. The cross * axis is clamped to `hidden` so content can't overflow it. */ orientation?: ScrollOrientation; } export declare function ScrollArea(props: ScrollAreaProps): JSX.Element;