Skip to content

Releases: TrinityMonsters/tramway

2.0.4

29 Dec 14:17

Choose a tag to compare

  • Disabled buttons style added

Full Changelog: 2.0.3.5...2.0.4

2.0.3.5

27 Dec 09:02

Choose a tag to compare

What's Changed

Full Changelog: 2.0.3.4...2.0.3.5

2.0.3.4

25 Dec 08:10
2154193

Choose a tag to compare

What's Changed

Full Changelog: 2.0.3.3...2.0.3.4

2.0.3.3

23 Dec 03:43

Choose a tag to compare

Full Changelog: 2.0.3.2...2.0.3.3

2.0.3.2

22 Dec 04:41

Choose a tag to compare

  • Bug fixes

Full Changelog: 2.0.3.1...2.0.3.2

2.0.3.1

20 Dec 03:45

Choose a tag to compare

Full Changelog: 2.0.3...2.0.3.1

2.0.3

20 Dec 03:29

Choose a tag to compare

Full Changelog: 2.0.2...2.0.3

2.0.2

10 Dec 22:59

Choose a tag to compare

What's Changed

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

07 Dec 05:35

Choose a tag to compare

Full Changelog: 2.0.1...2.0.1.1

2.0.1

07 Dec 05:31

Choose a tag to compare

Full Changelog: 2.0...2.0.1