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

@snack-uikit/accordion

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
s

@snack-uikit/accordion

0.11.0
latest
76

Supply Chain Security

100

Vulnerability

87

Quality

98

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Version published
Weekly downloads
615
218.65%
Maintainers
3
Weekly downloads
 
Created
Issues
0

Accordion

Installation

npm i @snack-uikit/accordion

Changelog

Example

import { AccordionPrimary } from '@snack-uikit/accordion'

function Example() {

// ...some actions

return (
  <AccordionPrimary >
    <AccordionPrimary.CollapseBlock title={title} description={description} actions={actions}>
      <Content />
    </AccordionPrimary.CollapseBlock>

    <AccordionPrimary.CollapseBlock title={title} description={description} actions={actions}>
      <Content />
    </AccordionPrimary.CollapseBlock>
  </AccordionPrimary>
)}

AccordionPrimary

Props

nametypedefault valuedescription
children*ReactElement<CollapseBlockProps, string | JSXElementConstructor<any>> | ReactElement<CollapseBlockProps, string | JSXElementConstructor<...>>[]-Вложенный контент
classNamestring-CSS-класс
expandedDefaultstring | string[]-Начальное состояние
expandedstring | string[]-Controlled состояние
onExpandedChange((value: string) => void) | ((value: string[]) => void)-Controlled обработчик измения состояния
selectionMode"single" | "multiple"-Режим работы аккордиона

AccordionSecondary

Props

nametypedefault valuedescription
children*ReactElement<CollapseBlockProps, string | JSXElementConstructor<any>> | ReactElement<CollapseBlockProps, string | JSXElementConstructor<...>>[]-Вложенный контент
classNamestring-CSS-класс
expandedDefaultstring | string[]-Начальное состояние
expandedstring | string[]-Controlled состояние
onExpandedChange((value: string) => void) | ((value: string[]) => void)-Controlled обработчик измения состояния
selectionMode"single" | "multiple"-Режим работы аккордиона

FAQs

Package last updated on 25 Mar 2025

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