Skip to main content

CustomElementModel

export
type CustomElementModel<
  T extends string,
  M extends HTMLContentModel
> = any

Fields

contentModel

contentModel: M;

getMixedUAStyles

getMixedUAStyles?: function __type(
  tnode: TNodeDescriptor,
  element: Element
) : void
  | MixedStyleDeclaration
  | null
  | undefined;

getReactNativeProps

getReactNativeProps?: function __type(
  tnode: ExtractTNodeFromType<TNodeType>,
  preGeneratedProps: ReactNativePropsSwitch | null,
  element: Element
) : void
  | ReactNativePropsDefinitions
  | null
  | undefined;

getUADerivedStyleFromAttributes

getUADerivedStyleFromAttributes?: function __type(
  attributes: Record<string, string>,
  markers: Markers
) : MixedStyleDeclaration | null;

isOpaque

isOpaque?: boolean;

isVoid

isVoid?: boolean;

mixedUAStyles

mixedUAStyles?: MixedStyleDeclaration;

reactNativeProps

reactNativeProps?: ReactNativePropsDefinitions;

setMarkersForTNode

setMarkersForTNode?: SetMarkersForTNode;

tagName

tagName: T;