diff --git a/apps/phx_wc_storybook_web/lib/phx_wc_storybook_web/components/core_components.ex b/apps/phx_wc_storybook_web/lib/phx_wc_storybook_web/components/core_components.ex index 1dd26624..f0cf1c6d 100644 --- a/apps/phx_wc_storybook_web/lib/phx_wc_storybook_web/components/core_components.ex +++ b/apps/phx_wc_storybook_web/lib/phx_wc_storybook_web/components/core_components.ex @@ -6,8 +6,7 @@ defmodule PhxWCStorybookWeb.CoreComponents do See the [Tailwind CSS documentation](https://tailwindcss.com) to learn how to customize the generated components in this module. - Icons are provided by [heroicons](https://heroicons.com), using the - [heroicons_elixir](https://github.com/mveytsman/heroicons_elixir) project. + Icons are provided by [heroicons](https://heroicons.com). See `icon/1` for usage. """ use Phoenix.Component @@ -34,20 +33,25 @@ defmodule PhxWCStorybookWeb.CoreComponents do <:cancel>Cancel """ - attr(:id, :string, required: true) - attr(:show, :boolean, default: false) - attr(:on_cancel, JS, default: %JS{}) - attr(:on_confirm, JS, default: %JS{}) + attr :id, :string, required: true + attr :show, :boolean, default: false + attr :on_cancel, JS, default: %JS{} + attr :on_confirm, JS, default: %JS{} - slot(:inner_block, required: true) - slot(:title) - slot(:subtitle) - slot(:confirm) - slot(:cancel) + slot :inner_block, required: true + slot :title + slot :subtitle + slot :confirm + slot :cancel def modal(assigns) do ~H""" -