import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Specify the gradient color: a fill token name, the same set as Box * `fill`, or any CSS color. Defaults to the `layer` token, which follows * the enclosing Layer. */ color?: "background" | "layer-01" | "layer-02" | "layer-03" | "layer-accent" | "field" | "inverse" | "brand" | (string & {}) | undefined; /** * Specify the background color of the scrollable content area: a fill * token name, the same set as Box `fill`, or any CSS color. Defaults to * the `layer` token, which follows the enclosing Layer. Does not affect * the gradient color; use `color` for that. */ background?: "background" | "layer-01" | "layer-02" | "layer-03" | "layer-accent" | "field" | "inverse" | "brand" | (string & {}) | undefined; /** * Specify the height of the component. Set a height so the content * can overflow vertically. */ height?: "100%" | "100vh" | (string & {}) | undefined; /** * Set to `true` to suppress the top and left gradients, * even when their edge is scrollable. * @default false */ hideStartGradient?: boolean; /** * Specify a class for the inner scrollable element. */ scrollElementClassName?: string | undefined; /** * Obtain a reference to the inner scrollable element. * @default null */ scrollElementRef?: null | HTMLDivElement; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type ScrollGradientProps = Omit<$RestProps, keyof $Props> & $Props; export default class ScrollGradient extends SvelteComponentTyped< ScrollGradientProps, { scroll: WindowEventMap["scroll"] }, { default: Record } > {}