Overriding CSS classes in Phoenix function components

Notes

We often want to override CSS classes to customize styles in Phoenix function components.

We can do that by passing a class attr and overriding the existing class with a list of defaults + overrides:

class={["defaults-here", @class]}

Want the latest Elixir Streams in your inbox?

    No spam. Unsubscribe any time.