phoenix_storybook icon indicating copy to clipboard operation
phoenix_storybook copied to clipboard

Feed attributes from live_view declarative assigns

Open cblavier opened this issue 3 years ago • 0 comments
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.17 or less, only storybook attributes are used
  • if using liveview 0.18+, then component attributes and storybook attributes are merged (storybook ones have higher priority)

cblavier avatar Aug 19 '22 10:08 cblavier