import { SidebarCurrent } from "./collection.cjs"; import { ReactNode, Ref } from "react"; export interface SidebarRailProps { /** * The rail contents: `Sidebar.RailItem`s, optionally a `Sidebar.Footer` * whose rail items render pinned at the bottom of the rail (same tile, e.g. * a help center), and optionally a `Sidebar.Header` shown in the mobile * drawer (on desktop the brand lives in the top bar). A `RailItem` wrapping * a `Sidebar.Nav` is a section (shows a panel); one with only an `href` is a * direct link. */ children?: ReactNode; /** Accessible label for the rail landmark. Defaults to a localized "Primary navigation". */ 'aria-label'?: string; /** * Marks the active rail item and panel leaf. Pass the current pathname (smart * segment matching) or a predicate `(href, key) => boolean`. */ current?: SidebarCurrent; /** Ref to the DOM element the component renders. */ ref?: Ref; }