Socket
Socket
Sign inDemoInstall

@real-system/accordion

Package Overview
Dependencies
107
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @real-system/accordion

Accordion component for real system.


Version published
Maintainers
1
Install size
197 kB
Created

Readme

Source

@real-system/accordion

Accordion component for real system.

npm version

Installation

# install peer dependencies

# npm
$ npm install react react-dom @real-system/a11y-library @real-system/styled-library @real-system/disclosure @real-system/utils-library
# yarn
$ yarn add react react-dom @real-system/a11y-library @real-system/styled-library @real-system/disclosure @real-system/utils-library

# install accordion

# npm
$ npm install @real-system/accordion
# yarn
$ yarn add @real-system/accordion

Code Example

import { Accordion } from '@real-system/accordion';
import { Disclosure, DisclosureToggle, DisclosureContent } from '@real-system/disclosure';

const MyComponent = () => {
  return (
    // available props
    <Accordion allowMultiple contained defaultExpanded={{ 1: true, 2: true, 3: true }}>
      <Disclosure>
        <DisclosureToggle>Accordion Item 1</DisclosureToggle>
        <DisclosureContent>Some content to expand and collapse</DisclosureContent>
      </Disclosure>
       <Disclosure>
        <DisclosureToggle>Accordion Item 2</DisclosureToggle>
        <DisclosureContent>Some content to expand and collapse</DisclosureContent>
      </Disclosure>
       <Disclosure>
        <DisclosureToggle>Accordion Item 3</DisclosureToggle>
        <DisclosureContent>Some content to expand and collapse</DisclosureContent>
      </Disclosure>
    </Accordion>
  )
}

Keywords

FAQs

Last updated on 29 Jan 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc