
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@nextindex/vue-simple-accordion
Advanced tools
Accordion component in vue
To be as flexible as possible, it contains only Accordion Items. You have to wrap it in a container and add your own styling. Title and content will be set over slots, to provide a maximum flexebility for the accordion content.
npm i @nextindex/vue-simple-accordion
import AccordionItem from 'vue-simple-accordion'
export default {
components: {
AccordionItem
}
}
<accordion-item variant="Accordion__item--small">
<div slot="title">Hello</div>
<div slot="icon"> <svg> .... </svg> </div>
<div slot="content">
<p>I am a hidden content</p>
</div>
</accordion-item>
In addition you can use the variant
prop to pass additional classes.
Only a very basic styling is included. So you can style it yourself to match your style. Some preset stylings will be included later.
.Accordion__item {}
.Accordion__heading {}
.Accordion__title {}
.Accordion__icon {
&.is-open {}
}
.Accordion__content {
&.is-open {}
}
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# run unit tests
npm run unit
# run e2e tests
npm run e2e
# run all tests
npm test
For detailed explanation on how things work, checkout the guide and docs for vue-loader.
FAQs
Accordion component in vue
The npm package @nextindex/vue-simple-accordion receives a total of 0 weekly downloads. As such, @nextindex/vue-simple-accordion popularity was classified as not popular.
We found that @nextindex/vue-simple-accordion demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.