# @heycar-uikit/collapse

> HeyCar-UIKit Collapse

Latest version **3.0.0** (published 2023-04-27) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install @heycar-uikit/collapse
pnpm add @heycar-uikit/collapse
yarn add @heycar-uikit/collapse
bun add @heycar-uikit/collapse
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2023-04-27 |
| First published | 2022-08-03 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 98.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | HeyCar Team |
| Maintainers | heycar-uikit |
| Keywords | ui, uikit, react, components, heycar, typescript, ui-components, design-systems, collapse |

## Links

- npm: https://www.npmjs.com/package/@heycar-uikit/collapse
- Repository: https://github.com/hey-car/heycar-uikit
- Homepage: https://github.com/hey-car/heycar-uikit/tree/main/packages/collapse#readme
- Issues: https://github.com/hey-car/heycar-uikit/issues
- npm.io page: https://npm.io/package/@heycar-uikit/collapse

## Dependencies (1)

- [classnames](https://npm.io/package/classnames.md) ^2.3.1

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2023-04-27
- 2.0.0 — 2023-04-26
- 1.4.1 — 2023-03-09
- 1.4.0 — 2022-10-13
- 1.2.3 — 2022-09-30
- 1.2.1 — 2022-09-16
- 1.1.1 — 2022-09-14
- 1.0.3 — 2022-09-01
- 1.0.2 — 2022-08-29
- 1.0.1 — 2022-08-29
- 1.0.0 — 2022-08-03

## README

# HeyCar-UIKit - Collapse

[![Tests](https://github.com/hey-car/heycar-uikit/actions/workflows/build.yml/badge.svg)](https://github.com/hey-car/heycar-uikit/actions/workflows/build.yml)
[![Coverage Status](https://coveralls.io/repos/github/hey-car/heycar-uikit/badge.svg)](https://coveralls.io/github/hey-car/heycar-uikit)
[![Demo build](https://github.com/hey-car/heycar-uikit/actions/workflows/main.yml/badge.svg)](https://github.com/hey-car/heycar-uikit/actions/workflows/main.yml)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

The Button component is used to trigger an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation.

## Installation

To install and save in your package.json dependencies, run the command below using npm:

```bash
npm install @heycar-uikit/collapse
```

## Usage

```tsx
import Collapse from '@heycar-uikit/collapse';

function App() {
  const [isOpen, setIsOpen] = React.useState(false);
  const buttonOnClick = () => setIsOpen(!isOpen);
  return (
    <div>
      <Button fullWidth size="small" onClick={buttonOnClick}>
        CLICK ME
      </Button>
      <Collapse open={isOpen}>
        <h2>What is Lorem Ipsum?</h2>
        <p>
          Lorem Ipsum is simply dummy text of the printing and typesetting
          industry. Lorem Ipsum has been the industry's standard dummy text ever
          since the 1500s, when an unknown printer took a galley of type and
          scrambled it to make a type specimen book. It has survived not only
          five centuries, but also the leap into electronic typesetting,
          remaining essentially unchanged. It was popularised in the 1960s with
          the release of Letraset sheets containing Lorem Ipsum passages, and
          more recently with desktop publishing software like Aldus PageMaker
          including versions of Lorem Ipsum.
        </p>
      </Collapse>
    </div>
  );
}
```

## Documentation and sandbox

[Storybook](https://hey-car.github.io/heycar-uikit/main/?path=/docs/components-collapse--collapse) documentation and sandbox

---
_Source: https://npm.io/package/@heycar-uikit/collapse · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
