phoenix_storybook
phoenix_storybook copied to clipboard
Feed attributes from live_view declarative assigns
trafficstars
Upcoming liveview 0.18.0 will ship with the ability to declare component assigns.
phx_live_storybook Attr API is intentionally very close with declarative component assigns, so the idea is that:
- if using
liveview 0.17or less, only storybook attributes are used - if using
liveview 0.18+, then component attributes and storybook attributes are merged (storybook ones have higher priority)