SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

PhoneFan

Three phones on a landing stage.

Open in a new tab
View code
tsx
<PhoneFan
	label="Three screens of Rooftree"
	pauseLabel="Pause the phone animation"
	start={<PhoneFrame>…</PhoneFrame>}
	front={<PhoneFrame>…</PhoneFrame>}
	end={<PhoneFrame>…</PhoneFrame>}
/>

Demo landings

Whole pages built only from @sdxc/ui, each for an invented product with its own palette and type. They open in a new tab.

Every demo, landings and docs sites alike, is listed in the demo gallery.

Installation

An ordinary dependency: install it, import the theme once, and import the component where it is used.

Terminal
npm add @sdxc/ui remix
typescript
import "@sdxc/ui/theme.css";

Usage

typescript
import { PhoneFan } from "@sdxc/ui/landing";

Lays three phone screens as a fan: side phones hide on a narrow column and tilt out from md, all floating on staggered bobs that MotionLoop can pause.

Props

Read from the component's own types, so every prop, every default and every allowed value is listed.

PropTypeRequiredDescription
labelstringYesAccessible name of the stage as a whole.
pauseLabelstringNoAccessible name of the pause toggle. Forwarded to MotionLoop.
startRemixNodeYesPhone behind the front on the inline start, tilted out.
frontRemixNodeYesLeading phone in the middle of the fan.
endRemixNodeYesPhone behind the front on the inline end, tilted out.

Also accepts everything in TagProps<"div">.

@sdxc/ui

Can’t find it? Contact us