UNPKG

itmar-block-packages

Version:

Common React components for WordPress custom blocks, now fully TypeScript-ready.

28 lines (27 loc) 717 B
interface GridCell { rowInx: number; colInx: number; } interface GridElement { startCell: GridCell; endCell: GridCell; value?: string; [key: string]: any; } export interface GridAttributes { gridElms: GridElement[]; rowNum: number; colNum: number; rowGap: string | number; colGap: string | number; rowUnit: string[]; colUnit: string[]; [key: string]: any; } interface GridControlsProps { attributes: GridAttributes; clientId: string; onChange: (newAttrs: Partial<GridAttributes>) => void; } declare const GridControls: ({ attributes, clientId, onChange, }: GridControlsProps) => import("react/jsx-runtime").JSX.Element; export default GridControls;