UNPKG

@antv/narrative-text-schema

Version:

Json schema of narrative text visualization

23 lines (19 loc) 563 B
import { CSSProperties } from 'react'; /** common props for block ele and inline ele */ export type CommonProps = { styles?: CSSProperties; className?: string; key?: string; }; /** basic block element structure, used for extends */ export type CustomBlockElement = CommonProps & { // customType is required for custom block structure customType: string; [key: string]: unknown; }; /** custom phrase metadata */ export type CustomMetaData = { // customType is required for custom block structure customType: string; [key: string]: unknown; };