UNPKG

@10up/block-components

Version:

10up Components built for the WordPress Block Editor.

24 lines 911 B
import { FC } from 'react'; interface BlockEditProps { name: string; isSelected: boolean; attributes: Record<string, any>; setAttributes: (attributes: Record<string, any>) => void; className: string; style: Record<string, any>; wrapperProps: { [key: string]: any; }; [key: string]: unknown; } interface BlockOptionOptions { attributes: Record<string, any>; classNameGenerator: (attributes: Record<string, unknown>) => string; inlineStyleGenerator: (attributes: Record<string, unknown>) => Record<string, any>; Edit: FC<BlockEditProps>; extensionName: string; order?: 'before' | 'after'; } declare function registerBlockExtension(blockName: string | string[], { attributes, classNameGenerator, inlineStyleGenerator, Edit, extensionName, order, }: BlockOptionOptions): void; export { registerBlockExtension }; //# sourceMappingURL=index.d.ts.map