1.2.1 • Published 9 months ago
@visual-framework/vf-details v1.2.1
Details component
About
Use this interactive accordion-link component in places where information is optional.
Usage
- This component makes use of the HTML
detailselement. - To toggle the default state, the
openattribute:<details class="vf-details" open>.
Install
This repository is distributed with npm. After installing npm and yarn, you can install vf-details with this command.
$ yarn add --dev @visual-framework/vf-detailsJS
This component does not use JS.
Sass/CSS
The source files included are written in Sass(scss). You can point your Sass include-path at your node_modules directory and import it like this.
@import "@visual-framework/vf-details/index.scss";Make sure you import Sass requirements along with the modules. You can use a project boilerplate or the vf-sass-starter