BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn/ui/button-example

Button

agentmesh/button-example
FreeExample

shadcn/ui publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/button-example.json

Source

registry/base-vega/examples/button-example.tsxraw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/button-example.json · first 6 KB
1"use client"
2
3import {
4 Example,
5 ExampleWrapper,
6} from "@/registry/base-vega/components/example"
7import { Button, buttonVariants } from "@/registry/base-vega/ui/button"
8import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
9
10export default function ButtonExample() {
11 return (
12 <ExampleWrapper className="lg:grid-cols-1 2xl:grid-cols-1">
13 <ButtonVariantsAndSizes />
14 <ButtonIconRight />
15 <ButtonIconLeft />
16 <ButtonIconOnly />
17 <ButtonInvalidStates />
18 <ButtonExamples />
19 </ExampleWrapper>
20 )
21}
22
23function ButtonVariantsAndSizes() {
24 return (
25 <Example title="Variants & Sizes">
26 <div className="flex flex-wrap items-center gap-2">
27 <Button size="xs">Default</Button>
28 <Button size="xs" variant="secondary">
29 Secondary
30 </Button>
31 <Button size="xs" variant="outline">
32 Outline
33 </Button>
34 <Button size="xs" variant="ghost">
35 Ghost
36 </Button>
37 <Button size="xs" variant="destructive">
38 Destructive
39 </Button>
40 <Button size="xs" variant="link">
41 Link
42 </Button>
43 </div>
44 <div className="flex flex-wrap items-center gap-2">
45 <Button size="sm">Default</Button>
46 <Button size="sm" variant="secondary">
47 Secondary
48 </Button>
49 <Button size="sm" variant="outline">
50 Outline
51 </Button>
52 <Button size="sm" variant="ghost">
53 Ghost
54 </Button>
55 <Button size="sm" variant="destructive">
56 Destructive
57 </Button>
58 <Button size="sm" variant="link">
59 Link
60 </Button>
61 </div>
62 <div className="flex flex-wrap items-center gap-2">
63 <Button>Default</Button>
64 <Button variant="secondary">Secondary</Button>
65 <Button variant="outline">Outline</Button>
66 <Button variant="ghost">Ghost</Button>
67 <Button variant="destructive">Destructive</Button>
68 <Button variant="link">Link</Button>
69 </div>
70 <div className="flex flex-wrap items-center gap-2">
71 <Button size="lg">Default</Button>
72 <Button size="lg" variant="secondary">
73 Secondary
74 </Button>
75 <Button size="lg" variant="outline">
76 Outline
77 </Button>
78 <Button size="lg" variant="ghost">
79 Ghost
80 </Button>
81 <Button size="lg" variant="destructive">
82 Destructive
83 </Button>
84// … truncated

What it pulls in

Other registry items

  • button
  • example

Files it writes

  • registry/base-vega/examples/button-example.tsx

Facts

Registry
shadcn/ui
Type
registry:example
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
3 days ago

Go to the source

Docs on shadcn/ui ombhanushaliii/agentmesh on GitHub Raw registry item This item as JSON

More from shadcn/ui

All 201 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordion-exampleshadcn/uiExamplesFreeno deps
Alert Dialogalert-dialog-exampleshadcn/uiExamplesFreeno deps
Alertalert-exampleshadcn/uiExamplesFreeno deps
Aspect Ratioaspect-ratio-exampleshadcn/uiExamplesFreeno deps
Avataravatar-exampleshadcn/uiExamplesFreeno deps
Badgebadge-exampleshadcn/uiExamplesFreeno deps
Breadcrumbbreadcrumb-exampleshadcn/uiExamplesFreeno deps
Button Groupbutton-group-exampleshadcn/uiExamplesFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex