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

@ndla/accordion

Package Overview
Dependencies
Maintainers
0
Versions
282
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndla/accordion

A simple accordion from NDLA

  • 6.0.31-alpha.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
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

Package last updated on 11 Oct 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc