BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/wa-ui/action-button

Action Button

wa-ui/action-button
FreeComponent

WhatsApp-style outlined pill action button with optional icon, using @base-ui/react Button.

Live preview

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

Install it

npx shadcn@latest add https://ui.meta-cloud-api.site/r/action-button.json

Source

components/ui/whatsapp/action-button.tsxui.meta-cloud-api.site/r/action-button.json
1"use client";
2
3import * as React from "react";
4import { Button } from "@base-ui/react/button";
5import { cn } from "@/lib/utils";
6import "@/components/ui/whatsapp/styles/whatsapp.css";
7
8export interface ActionButtonProps {
9 /** Icon element rendered before the label */
10 icon?: React.ReactNode;
11 children: React.ReactNode;
12 /** Render as an anchor — base-ui render prop */
13 href?: string;
14 onClick?: () => void;
15 className?: string;
16}
17
18/**
19 * WhatsApp-style outlined pill action button.
20 *
21 * @example
22 * <ActionButton icon={<ViewMoreIcon />}>더 보기</ActionButton>
23 * <ActionButton icon={<PlusIcon />} href="/channels/create">채널 만들기</ActionButton>
24 */
25const ActionButton = React.forwardRef<HTMLButtonElement, ActionButtonProps>(
26 ({ icon, children, href, onClick, className }, ref) => {
27 const renderEl = href ? <a href={href} /> : undefined;
28
29 return (
30 <Button
31 ref={ref}
32 render={renderEl}
33 nativeButton={!href}
34 onClick={onClick}
35 className={cn(
36 "font-wa inline-flex w-full items-center justify-center gap-2",
37 "rounded-full border border-wa-emerald-500 px-4 py-[10px]",
38 "text-[15px] font-medium text-wa-emerald-500",
39 "transition-colors hover:bg-wa-emerald-500/10",
40 className
41 )}
42 >
43 {icon && <span className="shrink-0">{icon}</span>}
44 {children}
45 </Button>
46 );
47 }
48);
49ActionButton.displayName = "ActionButton";
50
51export { ActionButton };

What it pulls in

npm packages

  • @base-ui/react

Files it writes

  • components/ui/whatsapp/action-button.tsx
  • components/ui/whatsapp/styles/whatsapp.css

Facts

Registry
wa-ui
Type
registry:component
Access
Free
Files written
2
Licence
MIT
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

Docs on wa-ui ui.meta-cloud-api.site froggy1014/wa-ui on GitHub Raw registry item This item as JSON

More from wa-ui

All 29 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Call Permissioncall-permissionwa-uiComponentsFree1 dep · 2 files
Carousel Templatecarousel-templatewa-uiComponentsFree1 dep · 3 files
Chat Bubblechat-bubblewa-uiComponentsFreeno deps · 2 files
Chat Headerchat-headerwa-uiComponentsFreeno deps · 2 files
Chat List Itemchat-list-itemwa-uiComponentsFreeno deps · 2 files
Chat Menuchat-menuwa-uiComponentsFree1 dep · 2 files
Contact Bubblecontact-bubblewa-uiComponentsFree1 dep · 3 files
CTA URL Bubblecta-url-bubblewa-uiComponentsFree1 dep · 3 files
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