Skip to content

Add 10 new UI widget components to component library - #113

Open
f3l1x wants to merge 1 commit into
masterfrom
claude/latte-widget-suggestions-AC6Ki
Open

Add 10 new UI widget components to component library#113
f3l1x wants to merge 1 commit into
masterfrom
claude/latte-widget-suggestions-AC6Ki

Conversation

@f3l1x

@f3l1x f3l1x commented Mar 17, 2026

Copy link
Copy Markdown
Member

Summary

This PR adds 10 new reusable UI widget components to the component library, expanding the available UI building blocks for the application. All components are built with Alpine.js for interactivity and styled with Tailwind CSS for consistency.

Key Changes

  • New Widget Components Added:

    • alert.latte - Dismissible alert boxes with 4 types (info, success, warning, error)
    • toast.latte - Toast notifications with configurable position, duration, and type
    • accordion.latte - Collapsible accordion with exclusive or multi-open modes
    • badge.latte - Inline badges with optional dot indicator and removable state
    • progress.latte - Progress bars with customizable height, color, and label display
    • popover.latte - Positioned popover tooltips with 4 directional options
    • drawer.latte - Slide-out drawer/sidebar with left/right positioning
    • switch.latte - Toggle switch component with optional label and disabled state
    • card.latte - Container card with optional header, footer, image, and hover effects
    • stepper.latte - Multi-step indicator with clickable navigation support
  • Demo Page Updates:

    • Added showcase sections for all 10 new components in the home template
    • Created example implementations in @codes/ directory demonstrating each component
  • Configuration Updates:

    • Registered all new widgets in config.neon for template path resolution
    • Added Alpine.js Collapse plugin to layout for accordion functionality

Implementation Details

  • All components use Alpine.js for state management and interactivity
  • Components support customizable defaults (colors, sizes, positions, etc.)
  • Consistent use of Tailwind CSS utility classes for styling
  • Components leverage block-based templating for flexible content injection
  • Proper accessibility attributes included (role, aria-checked, etc.)

https://claude.ai/code/session_01E8YcK33xXqUr8KdHYVNip2

…opover, drawer, switch, card, stepper

New reusable Alpine.js + TailwindCSS widgets covering feedback (alert, toast),
interactive components (accordion, popover, drawer), data display (badge,
progress, stepper), form input (switch), and layout (card). Each widget follows
existing patterns with block-based composition via {embed}. Includes usage
examples and homepage showcase sections. Also adds Alpine.js Collapse plugin
CDN to layout for accordion and existing collapse widget support.

https://claude.ai/code/session_01E8YcK33xXqUr8KdHYVNip2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants