Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@purpurds/accordion

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@purpurds/accordion

import { Meta, Stories, ArgTypes, Primary, Subtitle } from "@storybook/blocks";

  • 5.2.0
  • npm
  • Socket score

Version published
Weekly downloads
1.5K
increased by84.03%
Maintainers
2
Weekly downloads
 
Created
Source

import { Meta, Stories, ArgTypes, Primary, Subtitle } from "@storybook/blocks";

import * as AccordionStories from "./src/accordion.stories"; import packageInfo from "./package.json";

Accordion

Version {packageInfo.version}

Showcase

Properties

Installation

Via NPM

Add the dependency to your consumer app like "@purpurds/purpur": "^x.y.z"

In MyApp.tsx

import "@purpurds/purpur/styles";

In MyComponent.tsx

Default
import { Accordion, AccordionItem } from "@purpurds/purpur";

export const MyComponent = () => {
  return (
    <Accordion title="Accordion title" titleVariant="title-100">
      <AccordionItem title="Section title" value="1">
        Place body text here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at
        rutrum nulla.
      </AccordionItem>

      <AccordionItem title="Section title" value="2">
        Place body text here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at
        rutrum nulla.
      </AccordionItem>
    </Accordion>
  );
};
Negative with custom content
export const MyComponent = () => {
  return (
    <Accordion negative title="Accordion title">
      <AccordionItem title="Section title1">
        Place body text here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at
        rutrum nulla.
        <a href="https://telia.se">Link1</a>
      </AccordionItem>

      <AccordionItem title="Section title2">
        Place body text here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at
        rutrum nulla.
        <a href="https://telia.se">Link2</a>
      </AccordionItem>
    </Accordion>
  );
};

FAQs

Package last updated on 24 May 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