Add Primary Button to your Roblox project in one command. Requires Node 18+ and a Roblox project — run robloxui init first if you don't have one yet. See the docs.
bashnpx robloxui add primary-buttonFirst time? Start with the documentation.
import { Primary Button } from "./src/client/ui/components/primary-button";import { PrimaryButton } from "@/components/buttons/primary-button";
export function MyUI() {
return <PrimaryButton text="Save Changes" onClick={() => print("Saved!")} size="md" />;
}A bold, attention-grabbing button for primary actions. Supports hover, press, and disabled states with smooth transitions.
by RobloxUI Team
| Author | RobloxUI Team |
| Framework | Roblox-TS + React-Luau |
| Category | Buttons |
| Dependencies | @rbxts/react |
| Theme Tokens | colors.primary, colors.secondary, colors.textPrimary, spacing.xs, spacing.sm, spacing.md, radius.md |
| Last Updated | July 31, 2026 |