Skip to content

Commit

Permalink
Rename accordion_set to accordion (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardarella authored Dec 6, 2024
1 parent ee30d30 commit 61c7396
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions sources/lib/components/station_ui/html/accordion.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ defmodule StationUI.HTML.Accordion do
## Example
<.accordion_set>
<.accordion>
<:header>
Title something 1
</:header>
<:content>
Content something 1
</:content>
</.accordion_set>
</.accordion>
Suggested size classes
Expand All @@ -37,20 +37,6 @@ defmodule StationUI.HTML.Accordion do
lg: "md:text-lg lg:text-xl"
xl: "md:text-lg lg:text-xl xl:text-2xl"
"""

def accordion(assigns) do
~H"""
<.accordion_set>
<:header>
Title something 1
</:header>
<:content>
Content something 1
</:content>
</.accordion_set>
"""
end

slot :header, required: true do
attr :button_id, :string
end
Expand All @@ -60,7 +46,7 @@ defmodule StationUI.HTML.Accordion do
attr :content_size_class, :string, default: "text-base md:text-lg"
attr :rest, :global

def accordion_set(assigns) do
def accordion(assigns) do
assigns =
assigns
|> assign(:header, List.wrap(assigns.header))
Expand Down

0 comments on commit 61c7396

Please sign in to comment.