UNPKG

@brendonhudnell/react-hexgrid

Version:

Interactive hexagon grids with React bindings

25 lines (24 loc) 718 B
/// <reference types="react" /> import Orientation from './models/Orientation'; import Point from './models/Point'; export interface LayoutParams { spacing: number; orientation: Orientation; size: Point; origin: Point; } interface LayoutContextValue { layout: LayoutParams; points: string; } export declare const LayoutContext: import("react").Context<LayoutContextValue>; export interface LayoutProps { children: React.ReactNode; className?: string; flat?: boolean; origin?: Point; size?: Point; spacing?: number; } declare function Layout({ children, className, flat, origin, size, spacing, }: LayoutProps): JSX.Element; export default Layout;