A comprehensive UI component library for Jaspr - the Dart web framework. DuxtUI provides 100+ pre-built, styled components inspired by Nuxt UI.
dependencies:
duxt_ui: ^0.1.0
import 'package:duxt_ui/duxt_ui.dart';
// Button
DButton(
label: 'Click me',
variant: DButtonVariant.solid,
color: DButtonColor.primary,
onClick: () => print('clicked'),
)
// Input
DInput(
label: 'Email',
placeholder: 'Enter email',
type: InputType.email,
error: 'Invalid email',
)
// Card
DCard(
header: DCardHeader(title: 'Card Title'),
children: [Component.text('Card content')],
)
// Alert
DAlert(
title: 'Success',
description: 'Your changes have been saved.',
color: DAlertColor.success,
)
// Modal
DModal(
open: isOpen,
title: 'Confirm',
onClose: () => setState(() => isOpen = false),
children: [Component.text('Are you sure?')],
)
| Component |
Description |
DButton |
Button with variants, sizes, colors, loading states |
DInput |
Text input with validation, icons, hints |
DInputNumber |
Numeric input with increment/decrement |
DSelect |
Dropdown select with search, multi-select |
DCheckbox |
Checkbox with indeterminate state |
DCheckboxGroup |
Group of checkboxes |
DRadioGroup |
Radio button group |
DSwitch |
Toggle switch |
DSlider |
Range slider |
DPinInput |
PIN/OTP input |
DFileUpload |
File upload with drag & drop |
| Component |
Description |
DTable |
Data table with sorting, pagination |
DCard |
Card container with header, body, footer |
DBadge |
Status badge with variants |
DAvatar |
User avatar with fallback |
DAvatarGroup |
Stacked avatars |
DChip |
Removable chip/tag |
DTimeline |
Vertical timeline |
DTree |
Tree view with expand/collapse |
DPagination |
Page navigation |
DProgress |
Progress bar and circular progress |
DUser |
User card component |
| Component |
Description |
DAlert |
Alert message with variants |
DToast |
Toast notifications |
DToaster |
Toast container/provider |
DBanner |
Top banner announcements |
DSpinner |
Loading spinner |
DSkeleton |
Loading skeleton placeholders |
DEmpty |
Empty state display |
DError |
Error state display |
| Component |
Description |
DModal |
Modal dialog |
DSlideover |
Slide-in panel |
DDrawer |
Side drawer |
DDropdown |
Dropdown menu |
DPopover |
Popover tooltip |
DTooltip |
Simple tooltip |
DContextMenu |
Right-click context menu |
| Component |
Description |
DTabs |
Tab navigation |
DControlledTabs |
Controlled tab navigation |
DBreadcrumb |
Breadcrumb navigation |
DNavigationMenu |
Navigation menu |
DLink |
Styled link |
DKbd |
Keyboard shortcut display |
| Component |
Description |
DContainer |
Centered container |
DHeader |
Page header |
DFooter |
Page footer |
DMain |
Main content area |
DSeparator |
Horizontal/vertical divider |
| Component |
Description |
DPage |
Page wrapper with aside |
DPageHeader |
Page title section |
DPageHero |
Hero section |
DPageSection |
Content section |
DPageBody |
Page body |
DPageAside |
Sidebar navigation |
DPageGrid |
Grid layout |
DPageColumns |
Column layout |
DPageCard |
Linked card |
DPageCTA |
Call-to-action section |
| Component |
Description |
DDashboard |
Dashboard layout |
DDashboardSidebar |
Dashboard sidebar |
DDashboardNavbar |
Dashboard top nav |
DDashboardPanel |
Dashboard panel |
DDashboardToolbar |
Dashboard toolbar |
DDashboardSearch |
Search component |
DDashboardGroup |
Group container |
| Component |
Description |
DBlogPosts |
Blog post grid |
DBlogPost |
Single blog post card |
| Component |
Description |
DPricingPlans |
Pricing plan cards |
DPricingPlan |
Single pricing plan |
DPricingTable |
Feature comparison table |
| Component |
Description |
DChatMessage |
Single chat message |
DChatMessages |
Chat message list |
DChatPrompt |
Chat input |
DChatPromptSubmit |
Submit button |
DChatPalette |
Command palette |
| Component |
Description |
DAccordion |
Expandable accordion |
DCollapsible |
Collapsible section |
| Component |
Description |
DIcon |
Icon component (Iconify) |
DCarousel |
Image/content carousel |
DMarquee |
Scrolling marquee |
DScrollArea |
Custom scrollbar area |
DStepper |
Step indicator |
DCalendar |
Date calendar |
| Component |
Description |
DThemeProvider |
Theme context provider |
DColorModeButton |
Dark/light mode toggle |
DColorModeSwitch |
Dark/light mode switch |
DColorModeSelect |
Dark/light mode select |
DApp |
App wrapper with theme |
| Component |
Description |
DForm |
Form container |
DFormField |
Form field wrapper |
DFormFieldGroup |
Grouped form fields |
DFormActions |
Form action buttons |
DFormRow |
Form row layout |
DFormSection |
Form section |
DValidators |
Built-in validators |
Most components support variants and colors:
Variants: solid, outline, soft, subtle, ghost, link
Colors: primary, secondary, success, info, warning, error, neutral
Sizes: xs, sm, md, lg, xl
- Jaspr ^0.22.1
- Tailwind CSS (via jaspr_tailwind)
MIT License - see LICENSE for details.