Skip to content
APERVEIL / DOCS / REACT

Blocks — React

Install an Aperveil block in React: download it or add it with the CLI, render it and override its content, design and shader with props.

06

Blocks

A block is a whole section wearing a shader. Shape it on its page with Customize, then open Install, choose React and download it. Or add it with the CLI: npx @aperveil/cli add block signature-hero --framework react. The README in the download has the install line for the packages it uses.

page.tsx
import SignatureHeroSection from "@/components/aperveil/signature-hero";

export default function Page() {
  return <SignatureHeroSection />;
}

Unzip it into components/aperveil/ and render it from its entry file. Every prop is optional: content overrides any line of the copy, design the colours and typefaces, shader the shader's values, and on a form block onSubmit makes the form live. The entry file imports the block's stylesheet; the Next.js Pages Router accepts global CSS in pages/_app.tsx only, so move that import there.

Color Looks, browser support, performance and access are the same on every platform: see the overview.