Surface
A plain panel to put content on, in the theme's surface colour.
Add it to your project
Or install the packages yourselfTerminal
npm install @heroui/react
First time with HeroUI? Set it up once.
The code
*/
import {Surface} from "@heroui/react";
export default function SurfaceDemo() {
return (
<Surface className="flex min-w-[320px] flex-col gap-3 rounded-3xl p-6" variant="default">
<h3 className="text-base font-semibold text-foreground">Surface Content</h3>
<p className="text-sm text-muted">
This is a default surface variant. It uses bg-surface styling.
</p>
</Surface>
);This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.
Changed for this site: A default export (HeroUI's docs use named ones).