An open API service indexing awesome lists of open source software.

https://github.com/Vestride/react-stacked-elements

Toggle the visibility of two elements without removing them from the document layout
https://github.com/Vestride/react-stacked-elements

layout positioning react stack

Last synced: over 1 year ago
JSON representation

Toggle the visibility of two elements without removing them from the document layout

Awesome Lists containing this project

README

          

# react-stacked-elements ![Build Status][actions-img]

> Toggle the visibility of elements without causing a layout shift

This package uses CSS Grid to place items at the same column and row, then toggles their visibility based on the `selectedIndex` property.

## Install

```shell
npm install react-stacked-elements
```

## Usage

```tsx

Absolutely
No

```

## Demos

Check them out here

[actions-img]: https://github.com/Vestride/react-stacked-elements/actions/workflows/build.yml/badge.svg?branch=main