Button

Button

Displays a button or a component that looks like a button.

Usage

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

const { Tailwind } = VM.require("uiisnear.near/widget/tailwind");
 
const { Button } = VM.require("uiisnear.near/widget/button");
 
if (Tailwind == undefined) return "";
<Tailwind>
  <Button>Button</Button>
</Tailwind>

API Reference

Variants

Variants available and how to use them.

AttributeValue
variant"default" | "secondary" | "destructive" | "outline" | "ghost" | "link"
size"default" | "sm" | "lg" | "icon"

Examples

Primary

Secondary

Destructive

Outline

Ghost

Link

Loading