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.
Attribute | Value |
---|---|
variant | "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" |
size | "default" | "sm" | "lg" | "icon" |