Blossom UI

Buttons

Button component with colors, rounded corners, a loading state, an icon button for any icon you choose and social sign in buttons for Facebook, X, Github, Google and Apple.

How to use it

Run npx @blossomui/react add button, or copy src/components/UI/Buttons/Button.tsx into your React project and import it.

import { Button, IconButton, SocialButton } from './components/ui/Button'

Props

ButtonProps

PropTypeDescription
colorButtonColor | (string & {})Visual style of the button: a preset, `accent` for the brand color (`--blossom-accent`) or any CSS color such as `#7c3aed`.
roundedbooleanUse fully rounded (pill) corners.
loadingbooleanShows a spinner and disables the button.
size'sm' | 'md' | 'lg'
iconReactNodeOptional icon placed before the label.

IconButtonProps

PropTypeDescription
icon (required)ReactNodeAny element: an icon from the library you prefer or your own SVG.
label (required)stringWhat the button does. It is the accessible name, because the button has no text.
colorButtonColor | (string & {})A preset or any CSS color.
sizeIconButtonSize
roundedbooleanUse a circle instead of rounded corners.
loadingbooleanShows a spinner and disables the button.

SocialButtonProps

PropTypeDescription
provider (required)SocialProvider
labelstringText of the button, for example to translate it. Without it the text is "Sign in with" and the name of the provider.
iconOnlybooleanRender only the icon.
roundedboolean

Getting started

  • Introduction
  • Installation
  • Changelog

Customization

  • Colors
  • Brand color
  • Texts and translation

Components

  • Accordion
  • Alert dialog
  • Alerts
  • Avatar
  • Badges
  • Banner
  • Breadcrumb
  • Buttons
  • Calendar
  • Cards
  • Carousel
  • Charts
  • Chip input
  • Collapsible
  • Color picker
  • Combobox
  • Command palette
  • Context menu
  • Copy button
  • Date picker
  • Drawer
  • Dropdown
  • Empty state
  • File upload
  • Footer
  • Forms
  • Hover card
  • Jumbotron
  • KBD
  • Menubar
  • Modal
  • Navbar
  • Navigation menu
  • Number input
  • OTP input
  • Pagination
  • Popover
  • Pricing
  • Progress
  • Rating
  • Resizable panels
  • Scroll area
  • Segmented control
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Spinners
  • Stats
  • Stepper
  • Survey
  • Table
  • Tabs
  • Time picker
  • Timeline
  • Timer button
  • Toasts
  • Tooltip
  • Transfer list
  • Tree