Back to blog

HeroUI v2.8.0

HeroUI v2.8.0

HeroUI version v2.8.0 introduces TailwindCSS v4, improvements and bug fixes.

What's New in v2.8.0?

Upgrade today by using one of the following methods:

  1. Upgrading HeroUI using the cli
  1. Upgrading HeroUI using package managers

TailwindCSS v4

HeroUI is now compatible with TailwindCSS v4. HeroUI CLI supports to initialize starter templates with Tailwind v4 as well.

To upgrade your existing projects, please refer to migration guide.

Overlay Enhancement

The overlay and outside interaction handling for overlays, popovers, modals, dropdowns, selects, and tooltips have been improved to result in more consistent dismissal behaviour.

Component Enhancement

Toast

  • The return type of addToast has been changed from void to string where the string value is the unique key value of the newly created toast.
  • A new method closeToast(key: string): void has been introduced to accept a key value of string type and close the toast with the key.
  • The Toast closing order was updated from LIFO to FIFO.

Input

The Input component now features a new label placement option outside-top. Previously, labels would always remain inside the input field if there was no placeholder.

The new outside-top option ensures that labels are consistently displayed at the top of the input field, regardless of whether a placeholder is present, similar to the existing outside-left placement.

Select

Two new properties isClearable and onClear have been introduced in the Select component. A clear button is visible when a value is slected and a callback function triggered upon clearing the selection for custom handling.

endContent has been introduced in the Select component.

Table

The table header previously utilized either a chevron-up or chevron-down icon for sorting, which was not configurable. A new sortIcon property has been introduced, allowing users to customize the default sort icon. This icon will only be applied when allowsSorting is set to true.

What's Next?

We're excited to share that HeroUI v3 (Alpha) is just around the corner! You are expected to create stunning interfaces with 50% smaller bundle size, lightning-fast native CSS animations, and effortless customization that adapts to your design vision.

As an Alpha version, we're actively gathering feedback and refining the current components, including Button, Accordion, Avatar, TextArea, Checkbox, and more. Your input is invaluable in shaping the future of the library.

Breaking Changes

  • The component style have been updated to align TailwindCSS v4.
  • loadingIcon now renames to loadingComponent in Toast component

Release Changes

As always, we are incredibly grateful for your continued support and contributions. There are many exciting milestones ahead, and we invite you to join us on this journey.

Special thanks to HeroUI Team members @winchesHe, @macci001, @Vishvsalvi, and contributors for their contributions to this release.

Thanks for reading and happy coding! 🚀


Community

We're excited to see the community adopt HeroUI, raise issues, and provide feedback. Whether it's a feature request, bug report, or a project to showcase, please get involved!

Contributing

PR's on HeroUI are always welcome, please see our contribution guidelines to learn how you can contribute to this project.