Label

Label

Renders an accessible label associated with controls.

Usage

It's mandatory to wrap the whole component with the Tailwind tag.

const { Tailwind } = VM.require("uiisnear.near/widget/tailwind");
 
const { Label } = VM.require("uiisnear.near/widget/label");
 
if (Tailwind == undefined) return "";
<Tailwind>
  <Label htmlFor="email">Your email address</Label>
</Tailwind>

API Reference

Label

Contains the content for the label.

PropTypeDefault
htmlFor
string
---

Classnames

Classnames available to customize the component.

FunctionClassname
LabellabelClassname