What is Midwest?
Midwest is a ViewComponent-based design system for Ruby on Rails applications.
It provides accessible, composable UI primitives that integrate seamlessly with Tailwind CSS.
How do I install it?
Add
gem "midwest" to your Gemfile and run bundle install.
Then import the stylesheet and JavaScript in your application.
Is it accessible?
Yes. The accordion uses native
<details> and <summary>
elements, which provide keyboard navigation and screen reader support out of the box.
Can I nest other components inside?
Any component can be nested inside an accordion panel, including cards, forms, and other accordions.