@arcteryx/components-accordion

Arcteryx accordion

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@arcteryx/components-accordion
2.7.04 months ago3 years agoMinified + gzip package size for @arcteryx/components-accordion in KB

Readme

@arcteryx/components-accordion
Mainly used on PDP but this chap can be used to show/hide any kind of content.

Install

npm install --save @arcteryx/components-accordion

Usage

import {Accordion} from "@arcteryx/components-accordion";

<Accordion title="My sweet, sweet accordion" headingLevel="2">
  <p>Peek a boo</p>
</Accordion>

A title attribute is required, whereas headingLevel is not. The default headingLevel is h3.