Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@stimulus-components/reveal

stimulus-components35.7kMIT5.0.0TypeScript support: included

A Stimulus controller to toggle a class on one or multiple items to show or hide them.

stimulus, stimulusjs, stimulus controller, reveal

readme

Stimulus Reveal Controller

Getting started

A Stimulus controller to toggle a class on one or multiple items to show or hide them.

📚 Documentation

See stimulus-reveal-controller documentation.

👷‍♂️ Contributing

Do not hesitate to contribute to the project by adapting or adding features ! Bug reports or pull requests are welcome.

📝 License

This project is released under the MIT license.

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[5.0.0] - 2024-03-17

Chore

  • Renaming the component from stimulus-reveal-controller to @stimulus-components/reveal
  • Upgrading dependencies
  • Exporting Typescript Types
  • Updating demo UI
  • Add Stimulus LSP compatibility

[4.1.0] - 2022-12-25

Added

  • Adding name in library export to use the package with CDN, Sprockets and import-maps.

Chore

  • Bump dependencies.
  • Upgrading to Vite 4.x.
  • Docs new UI.
  • Upgrading Node to 18.x.

[4.0.0] - 2021-10-27

Chore

  • Breaking Upgrading Stimulus to 3.x and change namespace from stimulus to @hotwired/stimulus.
  • Upgrading dependencies
  • Upgrading Node to 14.18.1

[3.0.0] - 2021-06-01

Chore

  • Remove puppeteer for Vanilla Jest
  • Moving from Snowpack to Vite
  • Using stimulus as external library reducing bundle size from 40.43kb to 0.38kb.
  • Moving to TypeScript.
  • Upgrading Node to 14.17.0

[2.0.0] - 2020-12-05

Added

  • Support for Stimulus 2.0

Changed

  • Breaking Using the new targets syntax.
- <p data-target="reveal.item" class="hidden">
+ <p data-reveal-target="item" class="hidden">

[1.0.0] - 2020-10-16

Added

  • Adding controller