Interface TagFactory<S, T>

A factory function that creates a new instance of a tag.

interface TagFactory<S, T> {
    (content): FactoryOutput<S, T>;
    (attributes?, content?): FactoryOutput<S, T>;
}

Type Parameters

  • Creates a new Tag instance with the given content.

    Parameters

    Returns FactoryOutput<S, T>

    A new Tag instance.

  • Creates a new Tag instance with the given attributes and content.

    Parameters

    • Optional attributes: AttributesArg<T>

      The attributes of the tag.

    • Optional content: ChildrenArg<T>

      The children or content of the tag.

    Returns FactoryOutput<S, T>

    A new Tag instance.

Generated using TypeDoc