@codebub/grain
v0.1.0
Published
Film grain for any background, sharp on every screen. Slide its opacity and its colour.
Downloads
171
Readme
Grain
Film grain for any background, sharp on every screen. Slide its opacity and its colour.
A free React component from Codebub, made with React · CSS. See it live at codebub.com/components.
npm i @codebub/grainimport Grain from '@codebub/grain'
export default function Page() {
return (
<div style={{ width: 400, height: 800 }}>
<Grain />
</div>
)
}It fills the box you put it in, so give that a size: it's made for 400 by 800. Props: className, style.
It draws in a shadow root of its own, so its styles and your page's never meet. React 19.
MIT licensed.
