Skip to content

koddsson/details-flash-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Dismissable flash element demo

Use <details> and some CSS to make a dismissable flash element.

Usage

<details open>
  <summary>
    X
  </summary>
  Dismissable message goes here
</details>
details:not([open]) {
  display: none;
}

Releases

No releases published

Packages

No packages published

Languages