UI Components Library

Every reusable interface element on the platform in one place, built on the shared design tokens and Bootstrap 5.3. Each block is live: dismiss the alerts, open the modals, switch the tabs and submit the forms to see the real behaviour, then copy the markup into any page.

Header States

Three ready-to-use header variants built on the same design system. The Guest header is active by default; swap in the Patient or Doctor variant by copying its markup into the header actions.

Guest User Header

Active by default

Patient / User Logged-in Header

Notification · Avatar · Book Appointment

Doctor Logged-in Header

Notification · Avatar · Manage Appointments

Feedback & Notifications

Tell patients what just happened. Alerts sit in the page, toasts confirm an action and disappear, loading states show that work is in progress, and empty or error states explain what to do next.

Alerts

Success · Error · Warning · Info

Toast Notifications

Auto-dismiss · Stacked

Short confirmations that appear at the bottom-right corner and slide away after a few seconds. Trigger one with data-toast-target="#toastId".

Loading & Progress

Spinners · Busy button · Progress
Loading...
Loading...
Loading...

Profile completion

Processing

Uploading report.pdf

0%

Empty State

Nothing to show yet

No upcoming appointments

You have nothing scheduled right now. Book a visit and it will appear here with reminders, directions and a video link when needed.

Error State

Something went wrong

We couldn't load your records

The connection dropped while fetching your medical history. Your data is safe; try again or contact support if it keeps happening.

Contact Support

Interactive Elements

Disclosure and selection controls driven by Bootstrap's data attributes, so they work without any page-specific script.

Accordion

Single open

No. You can book directly with any of our specialists. Some insurers ask for a referral to cover the visit, so check your plan first.

Yes. Open the appointment from your profile and choose a new slot up to two hours before the visit.

A photo ID, your insurance card and a list of current medications. Arrive ten minutes early to complete registration.

Accordion

Multiple open

Chest tightness during exertion, shortness of breath and occasional dizziness reported over the last two weeks.

Stage 1 hypertension. ECG within normal limits; lipid panel shows elevated LDL.

Lisinopril 10mg daily, a low-sodium diet and a follow-up blood pressure review in six weeks.

Expandable Sections

Collapse · Chevron toggle
Doctor
Dr. Sarah Johnson
Date & time
Type
In-clinic visit
Location
1250 Sunset Boulevard, Room 204

Regular check-ups catch small problems before they grow. We recommend an annual physical for adults and more frequent visits for anyone managing a chronic condition.

Your doctor will review your history, update your vaccinations and order any screening tests that are due for your age group, so nothing is missed.

Tooltips & Popovers

Hover · Focus · Click

Tooltips

Popovers

Tabs

Pill tabs · Panels

About Dr. Aisha Sharma

Board-certified cardiologist with 14 years of experience in preventive cardiology and heart-failure management.

4.9 out of 5 from 2,500 reviews

"Explained every result clearly and never rushed the visit." Most patients mention her calm, thorough approach.

Medivana Medical Center

1250 Sunset Boulevard, Los Angeles. Free parking and step-free access at the east entrance.

Segmented Control

Radio group · Reveals a panel
Visit type

In-clinic visit

See the doctor at 1250 Sunset Boulevard. Arrive ten minutes early for check-in.

Video consultation

A secure link is sent to your email fifteen minutes before the slot. No app required.

Home visit

Available within 15 miles of the clinic for patients with limited mobility.

Dropdown Menus

Menu · Actions · Select

Switches & Checkboxes

Toggle · Check · Radio · Option card

Modals & Popups

Centred dialogs for outcomes and decisions, plus side and bottom drawers for secondary content. Confirm in one dialog to see it hand over to the next.

  • Success Modal

    Confirms a completed action with the next step.

  • Error Modal

    Explains what failed and offers a retry.

  • Confirmation Modal

    confirming opens the success dialog.

  • Delete Confirmation

    A destructive action with a red primary button.

  • Information Modal

    Header, scrollable body and a single acknowledgement.

  • Thank You Popup

    Form submission success with a ringed illustration.

  • Side Drawer

    Offcanvas panel for details, filters, Sidebar and settings.

  • Bottom Sheet

    Mobile-friendly navigation sheet sliding up from the bottom.

Form Components

Pill inputs with bold labels, helper text under the field and a lime focus ring. Required fields carry a red asterisk, optional ones say so.

Input Fields

Label · Helper · States · Sizes
As it appears on your insurance card.

Search Fields

Large · Compact

Select Dropdowns

Native · Styled

Date & Time Pickers

Native · Date strip
Quick pick

Textareas

Helper · Disabled
Up to 500 characters. Your doctor reads this before the visit.

Validation

Required · Invalid · Valid
Please enter your first name.
Enter a valid email address.
Choose the reason for your visit.
Looks good.
You must agree before submitting.

Data & Content Components

Containers for people, records and messages, with the loading skeletons that stand in for them while data arrives.

Cards

Base · Hover · Lift · Dark

Profile Cards

Doctor · Patient · Compact row

Sarah Mitchell

Patient • MRN 48-2931-07

Active plan
Age
34
Blood group
O+
Last visit
Doctor
Dr. S. Johnson

Information Panels

Lime · Warning · Dark

Opening hours

Monday to Friday 8AM to 8PM, Saturday 9AM to 6PM. Emergency care is open around the clock.

Fasting required

Do not eat or drink anything except water for 12 hours before your lipid panel.

Your data is protected

Records are encrypted and shared only with the care team you approve.

Read the privacy policy

Table with Status

Avatar cell · Status pill · Row actions
Patient Date & Time Type Status Action
Daniel Kim New patient In-clinic Confirmed View Chart
Sophia Patel Returning Video Pending Start Call
Michael Torres Returning In-clinic Cancelled

Skeleton Loaders

Card · Rows

Loading doctor card

Loading doctor list

Avatars & Image Placeholders

Sizes · Status · Group · Initials
Olivia Grant David Kim Rachel Adams, online Dr. Priya Nair
+4 SM JR
Book Appointment
Changes saved successfully.
Your session expires in 5 minutes.
Dr. Sharma has added notes to your record.
Record deleted.

Appointment Details

Dr. Sarah Johnson

General Physician

Confirmed
Date
Time
10:30 AM – 11:00 AM
Type
In-clinic visit
Location
1250 Sunset Boulevard, Room 204
Fee
$500

Share this record