Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TProps

Properties for the <T> component.

Hierarchy

  • TProps

Indexable

[key: string]: any

The remaining properties are passed to the rendered element.

Index

Properties

as?: AsType

The element to render as. May be a string (e.g. "div", "section") or a React component.

children?: ReactNode

Any children. When tag or text is also present any children are mapped to the corresponding placeholder

content?: TextPropType

Text to translate without any further template substitution. Use for e.g. literal translated text from an API.

count?: number

The number of the thing being described for cases where the translation provides pluralisation rules. Defaults to 1.

tag?: string

A tag to look up in the current dictionary and perform template substitution on.

Text to translate. Can also refer to a dictionary tag if it's a single element array: ["tag"]. The resolved text is processed with template substitution.

Generated using TypeDoc