Skip to content

Commit

Permalink
Rename accordion_set to accordion
Browse files Browse the repository at this point in the history
Also removes the previously defined but non-functioning accordion component
  • Loading branch information
bcardarella committed Nov 15, 2024
1 parent 180b40a commit a7dcd95
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 a7dcd95

Please sign in to comment.