Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

AriaBoolean

AriaBoolean: boolean | "true" | "false"

Boolean values in aria are specified as strings "true" or "false"

CrossoriginPropType

CrossoriginPropType: "anonymous" | "use-credentials" | boolean

Type for crossorigin attribute used for some HTML and SVG elements

DatasetPropType

DatasetPropType: {}

Type for dataset attribute that Combines data-* properties into one object, so that it is easier (less verbose) to specify them.

Type declaration

  • [K: string]: any

FetchpriorityPropType

FetchpriorityPropType: "high" | "low" | "auto"

Type for fetchpriority attribute used for some HTML and SVG elements

FormenctypePropType

FormenctypePropType: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain"

Type for formenctype attribute used for some HTML and SVG elements

FormmethodPropType

FormmethodPropType: "get" | "post" | "dialog"

Type for formmethod attribute used for some HTML and SVG elements

FormtargetPropType

FormtargetPropType: string | "_self" | "_blank" | "_parent" | "_top"

Type for formtarget attribute used for some HTML and SVG elements

IDPropType

IDPropType: string | number | IIDRule

Type for defining the id property of HTML elements

JsxElm

JsxElm: object | string | number | bigint | Function

Type of entities that can become renderable content. This type should be used when defining types of children that elements and coponents can accept. This type is also set as the Element type in the global JSX namespace.

Note that functional components and render() methods in class-based components DO NOT need to use this type as their return type - they can use any. Moreover, they can return null or undefined (or even true and false) to indicate no-content.

ReferrerPolicyPropType

ReferrerPolicyPropType: "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "unsafe-url"

Type for referrerpolicy attribute used for some HTML and SVG elements