upsiflu / less-ui

Write your views across several screen regions, and hide all Ui state in the Url.
https://package.elm-lang.org/packages/upsiflu/less-ui/latest
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

Implement `Collapsible` #25

Open upsiflu opened 1 year ago

upsiflu commented 1 year ago

Idea: collapsible (proxyLabel):

details (summary proxyLabel) :: children

dismissible id:

summary
    (details "")
    :: "x"
    :: children

In each case, the details should be rendered without triangle and instead in the special color.

Prior art: https://flupsi.com/multimedia -> Similar to <details>/<summary> but the content collapses as soon as the <details> element loses focus.

upsiflu commented 1 year ago

Dismissible (the "Toast" Ui pattern) can be a Collapsible with empty proxylabel.

upsiflu commented 1 year ago

Question: Is this within the scope of restrictive? -> wontfix for now