Tabs
- Only the selected tab is in the Tab order.
- Counts are mono so they don't shift.
- The selected tab is marked by weight and an underline, not colour alone.
Demo
- shadcn's Tabs on the DS Tabs, underline look; the filled look is Segmented below.
- Each tab controls a panel; here a DS Card per tab.
Today’s plan
What is due today and what is done.
3 doses due, 1 visit at 2:00 PM.
Medications
Every medicine on the plan, with its dose and time.
5 medications, 1 refill due Friday.
Visits
Upcoming and past visits from the care team.
Next visit: Thursday with Sam Okafor, RN.
Notes
What the nurse wrote after each visit.
2 new notes since Monday.
Line
- shadcn's Line variant is the DS look already, so Demo and Line match.
- The current tab is teal underlined and semibold, not colour alone.
4 of 5 doses taken today.
31 of 35 doses taken this week.
128 of 140 doses taken this month.
Segmented
- variant="segmented": shadcn's default look. The tabs sit in a filled track; the selected one is a raised white pill.
- The selected tab is marked by ground, shadow and darker text, never weight: every label stays Regular.
- Horizontal only, for 2 to 5 short labels that switch views of one thing.
Today’s doses, to-dos and the next visit.
Current medications and dosing schedule.
Tasks and activities to complete today.
Scheduled appointments and check-ins.
Vertical
- orientation="vertical": the rule moves to the left edge, up and down arrows move.
- The panel sits to the right of the list.
Your name, phone and address.
Who can see the plan and message you.
Texts before visits and doses.
Disabled
- A disabled tab is skipped by the arrow keys.
- A line under the tabs says why it is off.
Billing opens after your first visit.
Your care plan and who shares it.
Icons
- An icon before the label, Material Symbols at 20px, aria-hidden: the label names the tab.
- Never an icon alone in a tab.
Visits as a list, soonest first.
Visits on a month calendar.