UNPKG

@enonic/react-components

Version:

Library of React components for handling Enonic XP data and page components

10 lines (9 loc) 400 B
import type { LiteralUnion } from '@enonic-types/core'; import type { ClassValue } from 'clsx'; import type { RichTextData } from './RichText'; export interface TextBaseProps extends Omit<React.HTMLAttributes<HTMLElement>, 'className' | 'children'> { as?: LiteralUnion<keyof JSX.IntrinsicElements>; className?: ClassValue; data: RichTextData; 'data-portal-component-type'?: 'text'; }