@codebub/macbook-pro
v0.1.0
Published
Drag the lid open or shut. Drag it round. Type, and its keys type.
Readme
MacBook Pro
Drag the lid open or shut. Drag it round. Type, and its keys type.
A free React component from Codebub, made with React · WebGL. See it live at codebub.com/components.
npm i @codebub/macbook-proimport MacBookPro from '@codebub/macbook-pro'
export default function Page() {
return (
<div style={{ width: 800, height: 400 }}>
<MacBookPro />
</div>
)
}It fills the box you put it in, so give that a size: it's made for 800 by 400. Props: className, style, sound (on unless false).
It draws in a shadow root of its own, so its styles and your page's never meet. React 19 and three.js (installed with it).
MIT licensed.
