RobloxUIRobloxUI
BrowseDocsPricingSubmit
/
/
RobloxUIRobloxUI — Roblox UI Components Marketplace
DocsSitemapTermsPrivacyCookiesSettingsPerformance
  1. Home
  2. /
  3. Buttons
  4. /
  5. Primary Button
Booting Luau VM…

Install with the CLI

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-button

First time? Start with the documentation.

Import

tsx
import { Primary Button } from "./src/client/ui/components/primary-button";

Usage

tsx
import { PrimaryButton } from "@/components/buttons/primary-button";

export function MyUI() {
  return <PrimaryButton text="Save Changes" onClick={() => print("Saved!")} size="md" />;
}

Primary Button

TSX + LuauFree

A bold, attention-grabbing button for primary actions. Supports hover, press, and disabled states with smooth transitions.

by RobloxUI Team

View Source

Details

AuthorRobloxUI Team
FrameworkRoblox-TS + React-Luau
CategoryButtons
Dependencies@rbxts/react
Theme Tokenscolors.primary, colors.secondary, colors.textPrimary, spacing.xs, spacing.sm, spacing.md, radius.md
Last UpdatedJuly 31, 2026
Primary Button — RobloxUI