ITagProps

interface
Rendering

Polymorphic-tag contract — lets consumers override the root HTML element rendered by a component (e.g. change a <div> to an <article> or <section>).

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

tag
string
HTML element tag name to use as the component root. Defaults vary per component (div, span, button, …).

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Rendering a Card as an <article> element

html