Skip to Content
Urban Cowboy
Components

Button

Shared booking-engine Button with palette, variants, sizes and interactive states.

Button owns every part of its presentation. Callers control placement and the documented props only; do not override radius, padding, colour, hover, focus or pressed behaviour with local classes.

Interactive playground

boolean
boolean
boolean
boolean
string

Variants, sizes and states

The grid below migrates the former AllColors, TextCases, BorderColors, Clickable, Sizes and interactive Storybook stories. Palette colours render on both light and dark surfaces to verify contrast.

Props

PropValuesNotes
variantfilled, outline, transparentVisual treatment
colorSchemekeys of COLOR_PALETTESemantic colour token, not a raw CSS colour
borderColorbackground, foreground, fadedOnly meaningful with a bordered variant
sizexsmall, small, default, medium, large, xlargeUtility-driven sizing
textCaseuppercase, title, lowercaseTypography token
clickablebooleanAdds pointer affordance to otherwise static styling
hasIcon / iconPositionboolean / left, rightIcon child placement
isLoading / disabledbooleanLoading and disabled presentation

Responsive behaviour

Buttons keep their intrinsic width and wrap within a flex container. On narrow screens the variant grid stacks by row; no nested horizontal scrolling is introduced by the docs frame.

Usage

import { Button } from '@/components/ui/Button';

<Button variant="filled" colorScheme="lake-forest" onClick={continueBooking}>
  Book Your Stay
</Button>

View source