UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

17 lines (16 loc) 658 B
import type { PropsFor } from "../../types.js"; export type StickyProps = PropsFor<"div", { /** Position from top, either as a number in px or a css length string). * Default same as `.bf-page-padding`. */ top?: string | number; /** Remove default styling (padding, background, border-radius, and shadow) */ unstyled?: boolean; }>; /** * Sticky is a box that will follow scroll position until it reaches top, then * stick there. * * @see https://bifrost.intility.com/react/sticky */ declare const Sticky: import("react").ForwardRefExoticComponent<StickyProps & import("react").RefAttributes<HTMLDivElement>>; export default Sticky;