Skip to content

v0.0.3

Choose a tag to compare

@edadma edadma released this 19 Nov 03:19
· 489 commits to main since this release

What's New

Form System

  • Form component with React Hook Form integration and automatic validation
  • Input component supporting all HTML input types (text, email, password, number, date, etc.)
  • Checkbox component with sizes, colors, and indeterminate state support
  • Form.Item wrapper with automatic label, validation, and error handling
  • No layout shift when validation errors appear/disappear

Component Improvements

  • Button: Added htmlType prop for submit/button/reset (follows Ant Design pattern)
  • Input: Added w-full by default for proper form layout
  • Menu: Refactored to composite pattern (Menu.Item, Menu.Title)
  • Dropdown: Refactored to composite pattern (Dropdown.Trigger, Dropdown.Menu, Dropdown.Item)

Navigation & Routing

  • React Router integration for client-side navigation
  • Each component page has its own URL route
  • Browser back/forward navigation support
  • Organized navigation: Actions, Data Entry, Data Display, Navigation, Feedback

Documentation

  • Updated READMEs with all new components organized by category
  • Added Prerequisites section with Tailwind CSS v4 setup instructions
  • Form example in usage section
  • Comprehensive demo pages for all components

Components Available

Badge, Button, Card, Checkbox, Drawer, Dropdown, Form, Input, Loading, Menu, Navbar, Table

Demo

https://edadma.github.io/petalui