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.
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
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.
CheckboxCheckboxBoolean control with an aria-checked state.
SelectSelectDropdown listbox for single or multiple selection, with optional clear.
SelectButtonSelectButtonSegmented control for a mutually exclusive set of options.
DatePickerDatePickerCalendar field for a single date, a range, or a date and time.
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, DropdownMenuItemComposable dropdown menu for actions and commands.
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 and row expansion.
TreeTableTreeTable, TreeTableColumn, TreeNodeExpandable hierarchical grid with per-column cell slots.

Released under the MIT License.