Releases: TrinityMonsters/tramway
2.0.4
- Disabled buttons style added
Full Changelog: 2.0.3.5...2.0.4
2.0.3.5
What's Changed
- Wiped out light color theme by @kalashnikovisme in #147
- Upgrade cache by @kalashnikovisme in #148
Full Changelog: 2.0.3.4...2.0.3.5
2.0.3.4
2.0.3.3
Full Changelog: 2.0.3.2...2.0.3.3
2.0.3.2
- Bug fixes
Full Changelog: 2.0.3.1...2.0.3.2
2.0.3.1
Full Changelog: 2.0.3...2.0.3.1
2.0.3
Full Changelog: 2.0.2...2.0.3
2.0.2
What's Changed
- Flash component by @kalashnikovisme in #145
Tramway Flash
tramway_flash renders the Tailwind-styled flash component that Tramway uses in its layouts. Pass the flash text and type, and
the helper will resolve the proper Tailwind color (for example :success -> green, :warning -> orange). You can also provide
custom HTML options directly (e.g., class:, data:) and they will be merged into the flash container.
-# Haml example
= tramway_flash text: flash[:notice], type: :success
= tramway_flash text: 'Double check your data', type: :warning, class: 'mt-2', data: { turbo: 'false' }<%# ERB example %>
<%= tramway_flash text: flash[:alert], type: :danger %>
<%= tramway_flash text: 'Saved!', type: :success, data: { controller: 'dismissible' } %>Use the type argument for semantic colors (:success, :warning, :danger, and more) or provide a color: keyword to set
the Tailwind color family explicitly.
Full Changelog: 2.0.1.1...2.0.2
2.0.1.1
Full Changelog: 2.0.1...2.0.1.1
2.0.1
Full Changelog: 2.0...2.0.1