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> | AnchorHTMLAttributes<HTMLElement> & Partial<object>

HTML attributes.

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

  • button
    • disabled
  • iframe
    • src
  • img
    • 'alt', 'height', 'src', 'width'
  • a
    • 'href'

Note: All supported tags accept className, dir, onBlur, onClick, onFocus, style as attributes. Aria attributes are also supported such as id, role, tabindex, and many more listed in here.

tag

tag: string

HTML tag.

The current tags that are supported are below:

  • bdi
  • bdo
  • button
  • div
  • iframe
  • img
  • span
  • a
  • h1
  • h2
  • h3
  • h4
  • p
  • ul
  • ol
  • li

Generated using TypeDoc