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

@interop-ui/react-accordion

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interop-ui/react-accordion

  • 0.0.1-9
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
4
Weekly downloads
 
Created
Source

react-accordion

Installation

$ yarn add @interop-ui/react-accordion
# or
$ npm install @interop-ui/react-accordion

Usage

import * as React from 'react';
import { Accordion, styles } from '@interop-ui/react-accordion';

function MyComponent(domProps) {
  return (
    <Accordion {...domProps} style={{ ...styles.root, ...domProps.style }}>
      {/* start items */}

      <Accordion.Item style={styles.item} value="one">
        <Accordion.Header style={styles.header}>
          <Accordion.Button style={styles.button}>One</Accordion.Button>
        </Accordion.Header>
        <Accordion.Panel>Content for item 1</Accordion.Panel>
      </Accordion.Item>

      <Accordion.Item style={styles.item} value="two">
        <Accordion.Header style={styles.header}>
          <Accordion.Button style={styles.button}>Two</Accordion.Button>
        </Accordion.Header>
        <Accordion.Panel>Content for item 2</Accordion.Panel>
      </Accordion.Item>

      {/* end items */}
    </Accordion>
  );
}

FAQs

Package last updated on 23 Oct 2020

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