New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@posten-hedwig/accordion

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@posten-hedwig/accordion

Provides Accordion

  • 4.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-92%
Maintainers
4
Weekly downloads
 
Created
Source

Accordion

Accordions are made of two components, Accordion and AccordionItem

Usage

1 Install

npm install @posten-hedwig/accordion

2 Import

import { Accordion, AccordionItem } from '@posten-hedwig/accordion'

3 Render

<Accordion>
    <AccordionItem title='Opening hours'>
        <p>
            We are open Monday to Friday from 07:00 to 18:00
        </p>
    </AccordionItem>
    <AccordionItem title='Accessibility'>
        <p>
            We have a wheelchair platform and a handicap toilet
        </p>
    </AccordionItem>
</Accordion>

API Accordion

Accordion allowMultiple

This prop specifies if the Accordion allows multiple open AccordionItems at once. Default is true.

<Accordion allowMultiple={false}>
    /* AccordionItems goes here */
</Accordion>

API AccordionItem

AccordionItem title

This prop is the title for the current AccordionItem. Title is required.

<Accordion>
    <AccordionItem title='Opening hours'>
        /* contents goes here */
    </AccordionItem>
</Accordion>

AccordionItem expanded

This prop specifies whether this AccordionItem is expanded by default. Default is false.

<Accordion>
    <AccordionItem title='Opening hours' expanded={true}>
        /* contents goes here */
    </AccordionItem>
</Accordion>

Keywords

FAQs

Package last updated on 09 Oct 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc