
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
react-tap-to-reveal-options
Advanced tools
A simple react component intended for use on mobile.
npm install react-tap-to-reveal-options
import Flippable from 'react-tap-to-reveal-options';
const options = ['One', 'Two', 'Three'];
// or
const options = [
{label: 'One', key: 'first'},
{label: 'Two', key: 'second'},
{label: 'Three', key: 'last'}
];
<Flippable options={options} onSelect={cb} selected={'first'}>
<div>
Your content for front side
</div>
<div className="myclass">
Supports multiple children
</div>
</Flippable>
function cb(selectedOption) {
console.log(selectedOption);
// "One" | "Two" | "Three" if you passed an array of strings
// "first" | "second" | "last" if you passed an array of objects
}
.ttro-front {
height: 50px; /* mandatory */
/* Your styles for front side */
}
.ttro-back {
/* Your styles for back side */
}
.ttro-item {
/* Your styles for all options */
}
.ttro-item:active {
/* Your styles for pressed option */
}
/* Your styles for individual options, based on index if you passed an array */
.ttro-item-One {background-color: #613DC1;}
.ttro-item-Two {background-color: #542280;}
.ttro-item-Three {background-color: #2B3A67;}
/* Your styles for individual options, based on keys if you passed an object */
.ttro-item-first {background-color: #613DC1;}
.ttro-item-second {background-color: #542280;}
.ttro-item-last {background-color: #2B3A67;}
See the example.
FAQs
React component to flip items in list and reveal options
The npm package react-tap-to-reveal-options receives a total of 20 weekly downloads. As such, react-tap-to-reveal-options popularity was classified as not popular.
We found that react-tap-to-reveal-options demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.