imac-01
Loading...
imac-02
Loading...
imac-03
Loading...
imac-04
Loading...
imac-05
Loading...
imac-06
Loading...
Installation
Usage
import { IMac } from "@/components/ui/imac"<IMac>
<div className="p-6">Your content here</div>
</IMac>Size
<IMac size="lg">
<div className="p-6">Large iMac</div>
</IMac>Color
<IMac color="blue">
<div className="p-6">Blue iMac</div>
</IMac>Custom frame image
<IMac>
<img
src="/img/hero-1.jpg"
alt="App screen"
className="h-full w-full object-cover"
/>
</IMac>Props
| Prop | Type | Default |
|---|---|---|
children | ReactNode | — |
className | string | — |
size | "sm" | "md" | "lg" | "xl" | "md" |
color | "blue" | "green" | "pink" | "silver" | "yellow" | "orange" | "purple" | "silver" |
Notes
- The screen area is an absolutely positioned container, so
childrenscroll vertically inside it when they overflow. - Passing
imageoverrides thecolorprop. - Sizes map to fixed widths (
24rem,32rem,40rem,52rem). UseclassName(for examplemax-w-full) to keep the iMac inside small viewports.



