Skip to content

Components ​

@myghf/ui ships accessible, brand-aligned Vue 3 components. Every component page follows the same structure — a short overview, live examples, then props, events, slots, exposed methods, accessibility, and dark-mode/RTL notes.

Theming comes for free

Components style from the --myghf-* design tokens, so they follow your brand overrides and the dark theme automatically. See the theming guide for the token model, and the RTL guide for bidi behaviour.

Actions & display ​

Components that trigger actions or present short, non-interactive information.

ComponentExportsSummary
ButtonButtonPrimary action control with five variants, five sizes, and loading/disabled states.
TagTagCompact label or chip with tones, an optional icon, and an optional remove button.
Alert / MessageAlert, MessageInline feedback message; the same component is exported under two names.
SpinnerSpinnerInline loading indicator with an accessible status label.
SkeletonSkeletonPulsing placeholder block for loading layouts, with shape and size control.
ProgressProgressHorizontal progress bar, determinate or indeterminate.
AvatarAvatarCircular profile image that falls back to initials when no image is available.
TimelineTimeline, TimelineItemChronological activity list whose bullets are joined by a vertical line.
ThemeToggleThemeToggleButton that flips the shared light/dark theme.
IconIconRenders a Lucide icon by name.

Form ​

Inputs and controls for collecting and validating user data.

ComponentExportsSummary
Form fieldFormField, Label, FormDescription, FormMessageGroups a label, control, description, and error with shared id/aria wiring.
FormErrorsFormErrorsrole="alert" summary of form errors; each entry jumps to its field.
InputInputSingle-line text field with optional leading/trailing icons and three sizes.
InputNumberInputNumberNumeric field with min/max/step, Intl formatting, and optional stepper buttons.
TextareaTextareaMulti-line text field with a configurable row count.
PasswordPasswordPassword field with a show/hide toggle and optional strength feedback.
FileUploadFileUploadDrag-and-drop file input with a file list and per-file progress.
CheckboxCheckboxBoolean control with an aria-checked state.
SwitchSwitchOn/off toggle for immediately-applied settings.
RadioGroupRadioGroupSingle-choice group for a small, always-visible set of options.
SelectSelectDropdown listbox for single or multiple selection, with optional clear.
SelectButtonSelectButtonSegmented control for a mutually exclusive set of options.
ComboboxComboboxSearchable single/multi select with filtering and removable tags.
DatePickerDatePickerCalendar field for a single date, a range, or a date and time.
TimePickerTimePickerTime-only field with 12/24-hour formats and configurable minute steps.
TreeSelectTreeSelectTree dropdown that emits the selected leaf keys.
TransferListTransferListMoves items between available and selected lists.

Overlays ​

Dialogs, drawers, menus, and toast notifications.

ComponentExportsSummary
DialogDialogModal window with header, body, and footer regions.
DrawerDrawerEdge-anchored panel with logical start/end positions and configurable dismissal.
DropdownMenuDropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuLabel, DropdownMenuGroupComposable dropdown menu for actions and commands.
TooltipTooltipShort hover/focus label for a single trigger.
PopoverPopoverFloating panel anchored to a trigger.
AccordionAccordion, AccordionItemCollapsible sections for dense forms and details.
CommandPaletteCommandPaletteKeyboard-first command launcher over a filterable list.
ToastToaster, useToast, createToastStoreProvider plus store for transient notifications in six logical positions.

Tabbed navigation and the table family, from unstyled primitives to a headless data grid.

ComponentExportsSummary
TabsTabs, TabsList, TabsTrigger, TabsContentComposable tab strip and panels, controlled by v-model.
TableTable, TableHeader, TableBody, TableRow, TableHead, TableCell, TableEmpty, TablePaginationUnstyled table primitives plus a pagination control.
DataTableDataTable, DataTableFeaturesHeadless TanStack Table v9 grid with sorting, row expansion, and a loading state.
TreeTableTreeTable, TreeTableColumn, TreeNodeExpandable hierarchical grid with per-column cell slots.

Layout ​

Structural wrappers for page and panel composition — no styling beyond layout utilities.

ComponentExportsSummary
Layout primitivesContainer, Stack, Inline, GridCentred page column, vertical stack, wrapping row, and grid.
PageBreadcrumbs, PageHeader, PageContentBreadcrumb trail, page heading with actions, and the padded page body.
App shellAppShell, Sidebar, TopbarResponsive application frame with a docked or off-canvas sidebar.

Charts ​

Compact SVG charts built on the external d3-scale + d3-shape primitives, pulled in only where used.

ComponentExportsSummary
ChartsSparkline, BarChartLine/area sparkline and a categorical bar chart, both accessible.

Dashboard ​

Operational and clinical building blocks.

ComponentExportsSummary
DashboardStatCard, StatusBadge, StepperMetric card, status badge, and progress stepper.

Released under the MIT License.