# @react-lit/disclosure

> A disclosure is a button that controls visibility of a section of content. When the controlled content is hidden, it is often styled as a typical push button with a right-pointing arrow or triangle to hint that activating the button will display additiona

Latest version **0.7.0** (published 2023-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @react-lit/disclosure
pnpm add @react-lit/disclosure
yarn add @react-lit/disclosure
bun add @react-lit/disclosure
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2023-10-03 |
| First published | 2021-10-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=16.0.0 |
| Dependencies | 2 |
| Unpacked size | 10.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Joel Voss |
| Maintainers | joelvoss |

## Links

- npm: https://www.npmjs.com/package/@react-lit/disclosure
- Repository: https://github.com/joelvoss/react-lit-disclosure
- Homepage: https://github.com/joelvoss/react-lit-disclosure#readme
- Issues: https://github.com/joelvoss/react-lit-disclosure/issues
- npm.io page: https://npm.io/package/@react-lit/disclosure

## Dependencies (2)

- [@react-lit/helper](https://npm.io/package/@react-lit/helper.md) ^0.7.3
- [@react-lit/auto-id](https://npm.io/package/@react-lit/auto-id.md) ^0.7.0

## Recent versions

- 0.7.0 (latest) — 2023-10-03
- 0.6.0 — 2023-08-09
- 0.5.0 — 2022-09-10
- 0.4.0 — 2022-07-24
- 0.3.1 — 2022-04-22
- 0.3.0 — 2022-01-20
- 0.2.0 — 2022-01-17
- 0.1.3 — 2021-12-09
- 0.1.2 — 2021-12-01
- 0.1.1 — 2021-10-31

## README

# @react-lit/disclosure

A disclosure is a button that controls visibility of a section of content.
When the controlled content is hidden, it is often styled as a typical push
button with a right-pointing arrow or triangle to hint that activating the
button will display additional content. When the content is visible, the
arrow or triangle typically points down.

## Installation

```bash
$ npm i @react-lit/disclosure
# or
$ yarn add @react-lit/disclosure
```

## Example

```js
import * as React from 'react';
import { Disclosure, DisclosureButton, DisclosurePanel } from "@react-lit/disclosure";

function Example() {
  return (
    <Disclosure>
      <DisclosureButton>Expand me!</DisclosureButton>
      <DisclosurePanel>
        Li Europan lingues es membres del sam familie.
        Lor separat existentie es un myth. Por scientie, musica, sport etc,
        litot Europa usa li sam vocabular.
      </DisclosurePanel>
    </Disclosure>
  );
}
```

## Development

(1) Install dependencies

```bash
$ npm i
# or
$ yarn
```

(2) Run initial validation

```bash
$ ./Taskfile.sh validate
```

(3) Run tests in watch-mode to validate functionality.

```bash
$ ./Taskfile test -w
```

---

_This project was set up by @jvdx/core_

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