Adds accordion styles to example code

This commit is contained in:
Tessa Kelly 2022-04-12 17:37:59 -07:00
parent 854bce9e62
commit 70ba3bd590

View File

@ -111,7 +111,8 @@ view ellieLinkConfig model =
[ { sectionName = "Partial example"
, code =
String.join "\n"
[ "Accordion.view"
[ " div [] ["
, " Accordion.view"
, " { entries ="
, " [ Accordion.AccordionEntry"
, " { caret = " ++ Tuple.first settings.icon
@ -128,6 +129,16 @@ view ellieLinkConfig model =
, " , -- When using Accordion, be sure to wire up Focus management correctly!"
, " focus = identity"
, " }"
, " , Accordion.styleAccordion"
, " { entryStyles = []"
, " , entryExpandedStyles = []"
, " , entryClosedStyles = []"
, " , headerStyles = []"
, " , headerExpandedStyles = []"
, " , headerClosedStyles = []"
, " , contentStyles = []"
, " }"
, " ]"
]
}
]