VueTail: copy the component, keep the code
VueTail is a registry of 57 Vue 3 components and 30 composables, built on Tailwind CSS v4 and TypeScript. Each one lands in your src folder as a single file you can read and change. No package to keep up with, no wrapper to fight.
Get started · All components · All composables · Design tokens · GitHub
Guides
- Getting started: Clone the template, add the components you need, then pick a preset. Every file the CLI adds lands in your project, so the code is yours to change.
- Conventions: How files are named, where code goes, and how a page becomes a route in vuetail-template.
- Data layer: Endpoints, services, stores and the HTTP policy that sit between your pages and the API.
- Design tokens: Every value the components read, live from the active preset. Switch the preset or light and dark in the header and the values below change with it.
Components
- AdvancedAppTable: A data table that also knows how to stop being a table. The same column config renders as pinned-header rows or as a grid of record cards, at two densities —…
- AppAccordion: Sections that open and close (APG Accordion). Each header is a <button aria-expanded aria-controls> inside a real heading, so the page outline stays right. A…
- AppAvatar: A picture of a person or a team, with initials on a tinted disc when there is no picture or it fails to load. The tint comes from the name (or a seed you…
- AppAvatarGroup: A row of AppAvatars that overlap, then a "+N" tile for the rest. It is a labelled list, so screen readers hear how many there are and each name; the tile…
- AppBadge: A compact status label in soft tones. Every variant pairs a subtle fill with text that passes AA in all presets and themes.
- AppBlob: The morph canvas: shapes of one colour under one SVG goo filter (blur, a steep alpha curve, the source composited back), so where they come close they fuse…
- AppButton: A versatile button component with multiple variants, sizes, and states.
- AppCheckbox: A styled native checkbox with v-model, an indeterminate state and an optional label. Extra attributes reach the input, not the label.
- AppColorPicker: A colour picker with a saturation and brightness plane, a hue slider (AppSlider), hex and RGB fields, optional swatches and the screen eyedropper where the…
- AppDock: A floating macOS-style dock — a glass navigation pill pinned to any edge. Drag it between edges with a live preview, and it glides into place.
- AppDrawer: A side sheet: a modal dialog that slides in from an edge of the screen. It sits on the shared overlay stack (useOverlay), so it traps Tab, gives focus back to…
- AppDropdownMenu: A menu button (APG Menu Button) on top of AppPopover. Enter, Space or Down opens it on the first item, Up on the last; inside, the arrows, Home, End and…
- AppEmptyState: A centered empty-state block with optional icon, title, description, and action slot.
- AppErrorBoundary: A component that catches JavaScript errors anywhere in their child component tree and displays a fallback UI.
- AppFileTree: A file tree (APG Tree View): nested folders and files with one Tab stop. Up and Down move through the visible items, Right opens a folder or steps into it…
- AppFilterPanel: The single, schema-driven filtering component. A standalone collapsible card that owns all filtering logic — every field type, all value shapes, removable…
- AppGlassContainer: Groups glass panes: it owns the spacing they need to breathe, and hands each child the geometry to sit concentric to it. The web answer to GlassEffectContainer.
- AppIcon: A wrapper around Iconify that provides easy sizing and coloring with Tailwind v4.
- AppImageModal: A full-screen image viewer with zoom and navigation support.
- AppLinkPreview: A card for a link: image, title, description, site name and favicon, from data your app already has (an Open Graph or oEmbed endpoint on your server; the…
- AppLiquidGlass: A pane of real glass, built the way Apple describes the material: two backdrop layers, a rim that bends what is behind it with chromatic dispersion, the lit…
- AppMagnifier: A draggable lens that really magnifies what is behind it — the same refraction engine as AppLiquidGlass, curved across the whole surface instead of only at…
- AppMediaPlayer: A native <video> or <audio> with VueTail controls: play and pause, a scrubber (AppSlider) that reads "1 minute 5 seconds of 3 minutes", volume and mute, a…
- AppModal: A responsive dialog component for important content, overlays, or user input. Durations follow the active preset.
- AppNavbar: A floating nav capsule that darkens past the hero — labels fold shut without unmounting, and a single pill travels between links instead of fading in under…
- AppNotificationPreview: A lock-screen picture of a push notification on iOS or Android, for a "send notification" form. It clamps text the way each phone does and warns when the…
- AppPageLoader: A top-of-page progress bar wired to router navigation. Exposes start and done methods.
- AppPopover: A teleported floating panel that positions itself under its trigger, flips when there is no room, and follows RTL. Use it for panels with their own content (a…
- AppProgress: How far a task has got: role progressbar with aria-valuenow, aria-valuemin and aria-valuemax, or indeterminate when the amount is unknown. The bar fills on a…
- AppRadioGroup: Pick one of a few options (APG Radio Group). Native radio inputs in a <fieldset> with a <legend>, so the group has one Tab stop, the arrow keys move and…
- AppSegmentedControl: Pick one of a few options, drawn as one track with a sliding indicator. Underneath it is a radio group: native radio inputs in a <fieldset> with a <legend>…
- AppSkeleton: Placeholder loading blocks with text, circle, and rect variants. Respects reduced-motion preferences.
- AppSlider: A value, or a range, on a track (APG Slider and Multi-Thumb Slider). Each thumb is a styled native <input type="range">, so arrows, Page Up / Down, Home /…
- AppSpinner: A smooth, modern SVG loading spinner with customizable sizes and colors.
- AppSwap: Content that changes cross-fades through a blur instead of snapping: Save to Saving… to Saved, sun to moon, 3 to 4. After the header in Sileo (MIT). Change…
- AppSwitch: An on / off switch that applies at once (APG Switch). A real <button role="switch"> with aria-checked, so Space and Enter toggle it and screen readers say…
- AppTable: A robust, high-performance data table — search, sorting, pagination, row/bulk actions, inline-editable status cells, and styled Excel export. Filtering is…
- AppTabs: Tabs (APG Tabs): role tablist, tab and tabpanel, one Tab stop on the selected tab, the arrows (flipped in RTL), Home and End, and automatic or manual…
- AppText: A robust typography component for consistent text styling across the application.
- AppToast: The toaster: a pill that melts into a card when it has more to say. Ported from Sileo by Aaryan (MIT) onto the VueTail tokens and the useToast store…
- AppTooltip: A floating label that adds context while an element is hovered or focused. The tip is placed on <body> from the trigger box, so it sizes to its own text (up…
- ConfirmDangerModal: A specialized modal for confirming destructive or dangerous actions.
- CreateUpdateModal: A modal form for creating or updating records via API. Supports FormModel or v-model + Zod schema paths.
- DeleteModal: A confirmation modal that DELETEs a record via API and shows toast feedback on success or failure.
- RibbonField: An animated canvas field of two woven ribbons, with an optional word threaded through the weave. Colors come from the theme tokens; the ribbons bend toward…
- ThemeToggle: A compact button that cycles between light and dark mode using useTheme().
- AppForm: A schema-driven form: layout, validation and field rendering. Use v-model + a Zod schema, or a FormModel from src/lib for errors by path, touched state…
- DatePicker: A versatile date and time picker with support for various modes, constraints, and localized formatting.
- FileDisplay: A dedicated component for displaying selected or uploaded files with removal support.
- FileInput: A comprehensive file picker that handles selection, multiple files, and integrated file display.
- InputField: A versatile text input component with support for various HTML5 types, error states, and a built-in password visibility toggle.
- OtpInput: A one-time code split into boxes. Typing moves to the next box, Backspace goes back, the arrows, Home and End move, and a paste (or the phone offering the…
- PhoneInput: A specialized input for phone numbers with an integrated country code selector and automatic formatting.
- Select: A dropdown selector (APG listbox) with search, object items, groups with headers, an icon per item, and automatic positioning. The arrows, Home, End and…
- TagInput: A list of short values typed into one field. Enter or a comma adds what is typed (a pasted "a, b, c" adds three), Backspace in the empty field removes the…
- Textarea: A multi-line text input component for long-form content, with auto-resize support and validation states.
- TimePickerClock: A premium, precise time selection component with automatic AM/PM wrapping and unified v-model support.
Composables
- useAppConfig: A robust composable that provides reactive, read-only access to the centralized application configuration, including theme, SEO, and layout settings.
- useAnnouncer: One place that speaks to screen readers: two visually hidden live regions, polite and assertive, added once for the app. Messages outlive the component that…
- useAppUi: Switches between the VueTail presets (Ink, Pine, Console) by setting data-vt-preset on the html element, remembers the choice, and loads each preset's fonts…
- useAuth: Session state on top of src/lib/authToken.ts. The access token lives in memory only, so script on the page cannot read it from storage; the refresh token is…
- useBlob: The blob numbers, read from the tokens: the corner radius, the goo blur that follows it, and the morph spring. Every caller shares one MutationObserver on…
- useBreakpoint: A reactive composable for tracking active Tailwind CSS breakpoints and conditionally rendering content based on screen size.
- useClipboard: Copies text to the clipboard with a short-lived copied flag and an optional toast. Falls back to a hidden textarea where navigator.clipboard is missing (plain…
- useConfirm: Opens a confirmation dialog and resolves the answer as a promise. The dialog renders with the caller's app context, so the router, plugins and app-level…
- useDateFormat: A utility hook for standardizing date and time formatting, including preset patterns and relative time (e.g., "2 hours ago").
- useDebounce: Debounce or throttle a reactive value, so an expensive reaction (an API call, a filter over thousands of rows) runs once the input settles. Timers stop with…
- useDockDrag: AppDock's grip drag. Lifts the bar off its edge, keeps it under the pointer, previews where it will land and hands the landing to useDockFlight. Nothing…
- useDockFlight: FLIP animation for a dock changing edge, from a drag, a grip click or a settings menu alike. Moves on the motion tokens (--vt-duration-enter, --vt-ease) with…
- useDockPosition: The screen edge an AppDock is pinned to. The viewport dock shares one persisted edge; a dock scoped to a container gets its own with createDockPosition.
- useFormValidation: Clears validation errors as the user fixes them, by re-checking the form against a Zod schema. Error keys are field paths: email, or address.city for a nested…
- useIndicator: The sliding indicator of a segmented control or tab list, as two AppBlob shapes. Items carry data-indicator="<key>"; the active one is measured against the…
- useInfiniteScroll: Loads paginated data as the user nears the end of a list. An IntersectionObserver watches a sentinel after the last item and loads the next page while it is…
- useKeyboard: Binds global keyboard shortcuts and cleans them up on unmount. Single-key shortcuts stay quiet while the user types in a field; ctrl, alt and meta combos and…
- useLiquidGlass: The refraction engine behind AppLiquidGlass, AppGlassContainer and AppMagnifier. Builds a lens map for an element, keeps it in step with its size, settings…
- useLocalStorage: A ref mirrored to localStorage as JSON, with an optional Zod schema: anything that does not parse falls back to the default. A change made in another tab…
- useMotionTokens: Transition settings for motion-v, read from the duration tokens each call, so a preset switch and prefers-reduced-motion (which shortens every duration to 80…
- useOverlay: Focus, scroll and Escape for anything over the page: dialogs, sheets, lightboxes. Overlays form one app-wide stack, so only the top one traps Tab and hears…
- usePagination: Client-side pagination: offsets, ranges and visible page numbers for tables and lists. Options take numbers, refs or getters, and the page is pulled back the…
- useReducedMotion: A reactive flag that is true while the visitor has asked their OS for reduced motion. Animated components read it to drop movement (rise, scale, slide) and…
- useRovingFocus: Arrow-key navigation through a group of items, the WAI-ARIA way: the arrows of the orientation, Home and End, optional wrap and type-ahead, disabled items…
- useSeo: Applies page metadata (title, description, Open Graph) and clears it when the page unmounts. A getter re-applies whenever the data it reads changes, as well…
- useSidebar: Global state management for an application sidebar, handling both desktop collapse state (persisted) and mobile drawer state.
- useTableDisplay: App-wide list display preferences shared by every AdvancedAppTable: table rows or record cards, relaxed or compact density, and per-table hidden columns. All…
- useTheme: A powerful theme management hook that handles light/dark/system modes, reactive color retrieval, and persistent user preferences.
- useThemeCustomizer: Retunes the active preset from the five settings in DESIGN.md: accent, neutral tint, radius, density and font. Each setting is optional and overrides the…
- useToast: App-wide notifications. Mount AppToast once (App.vue) with the toasts ref. Call success, error, warning or info from anywhere. At most five show at once, a…