1.0.1 • Published 2 years ago
@maksrus/komponenty v1.0.1
Komponenty
A collection of custom Front-End re-usable components.
Compatible with Esmodule and Typescript.
Accordion
Automatically animates any elements. The hidden part must be wrapped into a element.
<details>
<summary>CLICK ME</summary>
<div data-accordion-content>
You can see me now !
</div>
</details>
Dropdown
A fixed dropdown that shows onclick. The hidden content can be assigned to any element as long as it is designed as the "toggler" Since the dropdown is "position: fixed", scroll bars won't interfere with it.
<div data-dropdown-toggler>
CLICK ME
<div data-dropdown-content>
You can see me now !
</div>
</div>