@expofp/floorplan
Version:
Interactive floor plan library for expos and events
19 lines • 789 B
TypeScript
import './LevelSelector.scss';
export interface LevelSelectorFloor {
/** Stable identifier for the floor (used as React key and passed to `onSelect`). */
id: string;
/** Display name shown to the user (already resolved to short/full by the caller). */
label: string;
active: boolean;
disabled: boolean;
}
export interface LevelSelectorProps {
floors: LevelSelectorFloor[];
layout: 'compact-list' | 'dropdown';
onSelect: (id: string) => void;
floorSelectionLabel: string;
currentFloorLabel: string;
floorLabel: string;
}
export default function LevelSelector({ floors, layout, onSelect, floorSelectionLabel, currentFloorLabel, floorLabel, }: LevelSelectorProps): import("react").JSX.Element | null;
//# sourceMappingURL=LevelSelector.d.ts.map