Socket
Socket
Sign inDemoInstall

@ndla/accordion

Package Overview
Dependencies
4
Maintainers
0
Versions
247
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndla/accordion

A simple accordion from NDLA


Version published
Maintainers
0
Created

Readme

Source

ndla-accordion

Accordion component

Installation

$ yarn ndla-accordion

Usage

Simple example where panel is open on render

import { AccordionRoot, AccordionItem, AccordionHeader, AccordionContent } from "@ndla/accordion";

return (
  <AccordionRoot defaultValue="1" type="single" collapsible={true}>
    <AccordionItem value="1">
      <AccordionHeader>Accordion 1</AccordionHeader>
      <AccordionContent>
        <div>Accordion content 1</div>
      </AccordionContent>
    </AccordionItem>
    <AccordionItem value="2">
      <AccordionHeader>Accordion 2</AccordionHeader>
      <AccordionContent>
        <div>Accordion content 2</div>
      </AccordionContent>
    </AccordionItem>
  </AccordionRoot>
);

Keywords

FAQs

Last updated on 10 Jul 2024

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc