
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-sensitive-hide
Advanced tools
Lightweight React component for hiding sensitive inline text with blur, blackout, or CAPTCHA unlock.
A lightweight React component for hiding sensitive inline text (images comming soon) with blur, blackout, CAPTCHA, or age verification unlock mechanisms. Perfect for protecting sensitive information in user interfaces while maintaining a clean, accessible experience.
Keywords: react, npm-package, safety, sensitive, content-protection, hide-text, kid-safe, protect-text
Try it out live! - See all features in action with interactive examples.
npm install react-sensitive-hide
yarn add react-sensitive-hide
pnpm add react-sensitive-hide
import { HideMe } from 'react-sensitive-hide';
import 'react-sensitive-hide/styles.css';
function App() {
return (
<p>
Here is some public text. <HideMe>Hidden sensitive text</HideMe> continues here.
</p>
);
}
import { HideMe } from 'react-sensitive-hide';
import 'react-sensitive-hide/styles.css';
<p>
Your password is <HideMe>super-secret-123</HideMe> and should be kept safe.
</p>;
<HideMe mode="blur" blackOut={true}>
This text will be completely blacked out
</HideMe>
<HideMe mode="captcha" captchaDifficulty="easy">
This content requires solving a simple math problem to reveal
</HideMe>
<HideMe mode="age-verification">This content requires age verification (18+ by default)</HideMe>
<HideMe mode="age-verification" minimumAge={21}>
This content requires you to be 21 or older
</HideMe>
<HideMe mode="blur" blurAmount={8} className="my-custom-class" style={{ borderRadius: '4px' }}>
Custom styled hidden content
</HideMe>
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | Required. The content to hide |
mode | "blur" | "captcha" | "age-verification" | "blur" | Reveal mechanism |
blackOut | boolean | false | Use blackout instead of blur |
blurAmount | number | 5 | CSS blur value (0-20) |
captchaDifficulty | "easy" | "medium" | "hard" | "easy" | Math problem complexity |
minimumAge | number | 18 | Minimum age required for age verification |
className | string | - | Additional CSS classes |
style | CSSProperties | - | Inline styles |
easy: Single digit addition/subtractionmedium: Two digit operationshard: Three digit operations with mixed operatorsminimumAge propImportant: Don't forget to import the CSS file in your application:
import 'react-sensitive-hide/styles.css';
The component uses CSS custom properties for easy theming:
.hide-me {
--hide-me-bg: #f5f5f5;
--hide-me-text: #333;
--hide-me-border: #ddd;
--hide-me-hover-bg: #e0e0e0;
}
aria-hidden and aria-label attributes# Run tests
npm test
# Run tests in watch mode
npm run test:watch
# Run linting
npm run lint
# Format code
npm run format
# Clone the repository
git clone https://github.com/LyesWeb/react-sensitive-hide.git
cd react-sensitive-hide
# Install dependencies
npm install
# Start development server
npm run dev
We welcome contributions! Please see our Contributing Guide for details.
Found a bug? Please open an issue with:
Have an idea? We'd love to hear it! Please open an issue with:
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Lightweight React component for hiding sensitive inline text with blur, blackout, or CAPTCHA unlock.
The npm package react-sensitive-hide receives a total of 0 weekly downloads. As such, react-sensitive-hide popularity was classified as not popular.
We found that react-sensitive-hide demonstrated a healthy version release cadence and project activity because the last version was released less than 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.