Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IStandardElement

Element used to render content.

An example of an iframe with a span child:

example

{
   tag: 'iframe',
   props: {
       style: {
           color: 'red',
           height: '100px',
           width: '100px'
       },
       className: 'this-class',
       src: 'www.blackboard.com'
   },
   children: [
       {
           tag: 'span',
           props: {
               style: {
                   color: 'blue'
               }
           }
       }
   ]
}

Hierarchy

  • IStandardElement

Index

Properties

Properties

Optional children

children: IStandardElement[] | string

HTML children as an array of IStandardElement or as a string.

Optional props

props: HTMLAttributes<HTMLElement> | IframeHTMLAttributes<HTMLIFrameElement> & Partial<object>

HTML attributes.

The current list of elements and their respective attributes are listed below:

  • iframe
    • src
  • img
    • 'src', 'alt'

Note: All supported tags accept className and style as attributes.

tag

tag: string

HTML tag.

The current tags that are supported are below:

  • iframe
  • span
  • div
  • img

Generated using TypeDoc