Skip to content
RoamComponents

Components

Component Library

All reusable UI components in one scrollable reference. Built on shadcn/ui and Tailwind, designed for consistency and speed.

Components

Buttons

Follow shadcn button variants. Black/neutral is the primary CTA colour. Never use fuchsia as a button background — it reads as destructive.

Button Variants

The core set of button styles mapped to Roam's brand.

Button Sizes

Small for tight spaces, default for most use cases, large for hero CTAs.

With Icons

Icons sit next to labels or stand alone as icon buttons.

Button States

Disabled and loading states.

Components

Forms

Inputs, selects, checkboxes, radio groups, and textareas following shadcn conventions. Focus rings use the default ring system — no fuchsia overrides.

Text Inputs

Standard text inputs with labels and helper text.

As it appears on your driver’s licence.

Please enter a valid phone number.

Select & Textarea

Dropdown select and multiline text area.

Checkboxes & Radio Groups

Selection controls for forms.

Add-ons
Insurance

Components

Cards

Cards are the primary container for grouped content. Use consistent padding, border radius, and border styling.

Basic Card

Standard card with title, description, and action.

Card Title

This is a basic card with a title, description, and a call to action button below.

Feature Cards

Icon-led cards for highlighting product features.

Insurance on Every Vehicle

Comprehensive coverage is mandatory on every vehicle.

Flexible Terms

Cancel anytime after your minimum term. Plans from 7 days.

Quality Vehicles

Late-model SUVs, sedans, and EVs — maintained by Roam.

Stats Cards

For dashboards and data displays.

Active Vehicles

247

+12%

Bookings This Month

1,843

+8%

Avg. Booking Value

$2,140

+3%

Customer Rating

4.8

+0.2

Components

Car Card

The primary vehicle listing card. Two variants — short-term (daily rental) and long-term (subscription) — driven by a single variant prop. Supports conditional badges, specs, pricing, and enrollment fee selection.

Short-Term Variant

Shows category name, daily price, and total for the selected period.

Hyundai Elantra — black, three-quarter front view
New

Compact Sedan

Toyota Corolla or similar

Gas5Automatic
$59/day

$826 total for 14 days

Excl. add-ons, taxes

Long-Term Variant

Shows year/make/model, weekly and monthly pricing, and enrollment fee selector.

Kia Sportage — black, three-quarter front view
On Sale

2025 Kia Sportage

EX Premium

Gas5Automatic
$399/week
or $1,399/mo$1,599

Excl. add-ons, taxes

Enrollment fee

Badge Variations

Cards with different badge combinations: New, On Sale, Only X Left, Electric, Hybrid.

Hyundai Elantra — black, three-quarter front view
New

Compact Sedan

Toyota Corolla or similar

Gas5Automatic
$59/day

$826 total for 14 days

Excl. add-ons, taxes

Kia Sportage — black, three-quarter front view
On Sale

Compact SUV

Kia Sportage or similar

Gas5Automatic
$69/day$79

$966 total for 14 days

Excl. add-ons, taxes

Hyundai Tucson — silver, three-quarter front view
Only 2 left

Midsize SUV

Hyundai Tucson or similar

Gas5Automatic
$72/day

$1,008 total for 14 days

Excl. add-ons, taxes

Hyundai Tucson — silver, three-quarter front view
Electric

Electric SUV

Hyundai Ioniq 5 or similar

Electric5Automatic
$89/day

$1,246 total for 14 days

Excl. add-ons, taxes

Kia Sportage — black, three-quarter front view
Hybrid

Hybrid SUV

Toyota RAV4 Hybrid or similar

Hybrid5CVT
$75/day

$1,050 total for 14 days

Excl. add-ons, taxes

Components

Inventory Grid

Full browse-page layout with responsive grid, short-term / long-term toggle, and loading / empty states. Toggle between states using the controls.

Interactive Demo

Switch between variants and states.

Hyundai Elantra — black, three-quarter front view
New

Compact Sedan

Toyota Corolla or similar

Gas5Automatic
$59/day

$826 total for 14 days

Excl. add-ons, taxes

Kia Sportage — black, three-quarter front view
On Sale

Compact SUV

Kia Sportage or similar

Gas5Automatic
$69/day$79

$966 total for 14 days

Excl. add-ons, taxes

Hyundai Tucson — silver, three-quarter front view
Only 2 left

Midsize SUV

Hyundai Tucson or similar

Gas5Automatic
$72/day

$1,008 total for 14 days

Excl. add-ons, taxes

Hyundai Tucson — silver, three-quarter front view
Electric

Electric SUV

Hyundai Ioniq 5 or similar

Electric5Automatic
$89/day

$1,246 total for 14 days

Excl. add-ons, taxes

Kia Sportage — black, three-quarter front view
Hybrid

Hybrid SUV

Toyota RAV4 Hybrid or similar

Hybrid5CVT
$75/day

$1,050 total for 14 days

Excl. add-ons, taxes

Hyundai Elantra — black, three-quarter front view

Compact Sedan

Hyundai Elantra or similar

Gas5Automatic
$49/day

$686 total for 14 days

Excl. add-ons, taxes

Components

Badges & Tags

Small labels for status, categories, and metadata. Use Tailwind utility colours for semantic states.

Badge Variants

Status badges, brand accents, and neutral tags.

Status

ActivePendingCancelledIn TransitCompleted

Brand

PopularNewBest Value

Tags

SUVElectricAll-Wheel DriveSedanLuxury

Components

Alerts & Notifications

Contextual feedback messages. Use Tailwind utility colours — never fuchsia for error states.

Alert Variants

Informational, success, warning, and error alerts.

Booking confirmed

Your Kia Sportage has been reserved for pickup on Monday, April 14th at one of Roam’s service locations.

Payment received

Your monthly payment of $1,249.00 has been processed successfully.

Insurance expiring soon

Your personal insurance coverage expires in 5 days. Roam insurance will be applied automatically.

Payment failed

We couldn’t process your payment. Please update your card details and try again.

Toast Notifications

Transient notifications that appear and auto-dismiss.

Saved successfully

Your changes have been saved.

Components

Tables

Data tables for dashboards and admin views. Striped rows for readability, consistent alignment, and clear hierarchy.

Data Table

Fleet inventory example.

VehiclePlanStatusMonthlyActions
Kia Sportage 2024Long-TermActive$1,249
Hyundai Tucson 2024Short-TermPending$389/wk
Hyundai Elantra 2023Long-TermActive$999
Tesla Model 3 2024Long-TermCancelled$1,599

Components

Feedback & States

Loading indicators, empty states, and confirmation dialogs.

Loading States

Spinners and skeleton screens for async content.

Spinner
Skeleton

Empty State

When there's no content to display.

No vehicles found

Try adjusting your filters or search terms to find what you’re looking for.

Dialog / Modal

Confirmation dialogs for important actions.

Cancel Subscription?

Your current term ends on April 30. You will not be charged after that date. This action cannot be undone.