interface AnchoredFloatOptions

Passed to useAnchoredFloat by the component that owns the panel, in pixels. The heights let the hook size the panel's scrolling part to the room left.

Properties

width: number | "anchor"

A width, or "anchor" for the anchor's own. Either shrinks to fit a narrower viewport.

The height of the panel's parts that don't scroll, borders included.

Usage

import { type AnchoredFloatOptions } from "src/hooks/shared/useAnchoredFloat.ts";