@tempots/ui

Anchor() function

Creates an anchor element with the specified href and children. When the anchor element is clicked, the location is updated to the specified href.

Signature:

Anchor: (hrefOrOptions: HrefOrAnchorOptions, ...children: TNode[]) => Renderable

Parameters

Parameter

Type

Description

hrefOrOptions

HrefOrAnchorOptions

The href attribute of the anchor element.

children

TNode[]

The child elements of the anchor element.

Returns: Renderable

The anchor element.