Skip to main content
.tag(value: any): Component;

Parameters

value
any
The tag value to assign to this view. Can be any type.

Support

Usage

String tag

Text("Tagged text")
    .tag("important")

Object tag

Button("Action", () => {})
    .tag({ category: "navigation", priority: "high" })

Number tag

Image("photo.jpg")
    .tag(42)