react-svg-seatmap
Version:
React components that render a highly-customizable seatmap based on a provided SVG
15 lines (14 loc) • 493 B
TypeScript
import { ReactNode } from 'react';
import { Seat } from '../../types/Seat.types';
import { SeatmapControl } from '../../types/SeatmapControl.types';
export interface SeatmapInputProps {
seats: Seat[];
onChange?: (value: number[]) => void;
value?: number[];
svg?: string;
displayGroupMapping?: Record<string, string | ReactNode>;
leftControls?: SeatmapControl[];
rightControls?: SeatmapControl[];
withGroupSelection?: boolean;
withDragSelection?: boolean;
}