{"id":26294216,"url":"https://github.com/Vestride/react-stacked-elements","last_synced_at":"2025-03-15T03:01:50.244Z","repository":{"id":39040262,"uuid":"283394393","full_name":"glen-cheney/react-stacked-elements","owner":"glen-cheney","description":"Toggle the visibility of two elements without removing them from the document layout","archived":false,"fork":false,"pushed_at":"2023-03-05T08:41:19.000Z","size":2916,"stargazers_count":3,"open_issues_count":20,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-19T11:08:37.635Z","etag":null,"topics":["layout","positioning","react","stack"],"latest_commit_sha":null,"homepage":"https://vestride.github.io/react-stacked-elements","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glen-cheney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-07-29T04:05:04.000Z","updated_at":"2022-01-27T03:48:46.000Z","dependencies_parsed_at":"2024-01-18T23:05:15.972Z","dependency_job_id":"b151df3b-6228-424c-9d44-11c0ab630c37","html_url":"https://github.com/glen-cheney/react-stacked-elements","commit_stats":{"total_commits":20,"total_committers":3,"mean_commits":6.666666666666667,"dds":0.25,"last_synced_commit":"000eb915710792dc591c0840e517901c92ee60a5"},"previous_names":["glen-cheney/react-stacked-elements","vestride/react-stacked-elements"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glen-cheney%2Freact-stacked-elements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glen-cheney%2Freact-stacked-elements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glen-cheney%2Freact-stacked-elements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glen-cheney%2Freact-stacked-elements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glen-cheney","download_url":"https://codeload.github.com/glen-cheney/react-stacked-elements/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243676761,"owners_count":20329434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["layout","positioning","react","stack"],"created_at":"2025-03-15T03:01:47.199Z","updated_at":"2025-03-15T03:01:50.239Z","avatar_url":"https://github.com/glen-cheney.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# react-stacked-elements ![Build Status][actions-img]\n\n\u003e Toggle the visibility of elements without causing a layout shift\n\nThis package uses CSS Grid to place items at the same column and row, then toggles their visibility based on the `selectedIndex` property.\n\n## Install\n\n```shell\nnpm install react-stacked-elements\n```\n\n## Usage\n\n```tsx\n\u003cStackedElements selectedIndex={isChecked ? 0 : 1}\u003e\n  \u003cspan\u003eAbsolutely\u003c/span\u003e\n  \u003cspan\u003eNo\u003c/span\u003e\n\u003c/StackedElements\u003e\n```\n\n## Demos\n\nCheck them out here \u003chttps://vestride.github.io/react-stacked-elements/\u003e\n\n[actions-img]: https://github.com/Vestride/react-stacked-elements/actions/workflows/build.yml/badge.svg?branch=main\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVestride%2Freact-stacked-elements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVestride%2Freact-stacked-elements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVestride%2Freact-stacked-elements/lists"}