@grundtone/vue
@grundtone/vue
Vue 3 component library for the Grundtone design system.
Installation
npm install @grundtone/vue @grundtone/design-system
Usage
<script setup>
import { Button, Icon, ThemeProvider } from '@grundtone/vue';
</script>
<template>
<ThemeProvider>
<Button variant="primary" size="md">
<Icon name="check" />
Confirm
</Button>
</ThemeProvider>
</template>
Components
| Component | Description |
|---|---|
GTAccordion / GTAccordionItem |
Expandable sections with toggle-all |
GTAlert |
Info, success, warning, error alerts |
GTAnchorLinks |
In-page navigation |
GTAutocomplete |
Typeahead search input |
GTBadge |
Status labels with dot/icon |
GTBreadcrumb |
Navigation trail |
GTButton |
Primary, secondary, outlined, negative |
GTCard |
Content container with media, nav, horizontal |
GTCookieMessage |
GDPR cookie consent |
GTDateInput |
Day/month/year date entry (3 separate fields) |
GTDetails |
Collapsible content (native <details>) |
GTIcon |
SVG icon renderer |
GTInput |
Text input with label, help, error, prefix/suffix |
GTSelect |
Dropdown select with option groups |
GTTabs / GTTabPanel |
Tabbed content (underline, segment, pill) |
GTToggle |
On/off switch |
Composables
| Composable | Description |
|---|---|
useTheme |
Access theme context (dark mode, toggle) |
useField |
Reactive field state with validation |
useDateField |
Date field state with validation (for GTDateInput) |
useFormValidation |
Form-level validation aggregator |
useDawaAutocomplete |
Danish address autocomplete |
Validators
All re-exported from @grundtone/utils:
required, email, phone, cpr, cvr, date, datePast, dateFuture, minLength,
maxLength, pattern, url, composeValidators
Nuxt
For Nuxt 3 projects, use @grundtone/nuxt instead
for automatic component and composable auto-imports.
Documentation
See grundtone.com for full component API, examples, and design guidelines.
License
MIT
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 3.3.0 | MIT | |
| 3.2.3 | MIT | |
| 3.2.2 | MIT | |
| 3.2.1 | MIT | |
| 3.2.0 | MIT | |
| 3.1.0 | MIT | |
| 3.0.1 | MIT | |
| 3.0.0 | MIT | |
| 2.23.3 | MIT | |
| 2.23.2 | MIT | |
| 2.23.0 | MIT | |
| 2.22.0 | MIT | |
| 2.21.6 | MIT | |
| 2.21.5 | MIT | |
| 2.21.2 | MIT | |
| 2.19.0 | MIT | |
| 2.17.0 | MIT | |
| 2.16.3 | MIT | |
| 2.16.2 | MIT | |
| 2.16.1 | MIT | |
| 2.16.0 | MIT | |
| 2.15.0 | MIT | |
| 2.14.0 | MIT | |
| 2.13.0 | MIT | |
| 2.12.0 | MIT | |
| 2.11.0 | MIT | |
| 2.10.0 | MIT | |
| 2.9.1 | MIT | |
| 2.9.0 | MIT | |
| 2.8.0 | MIT |
Showing the latest 30 of 40. See every release on npm