Color Preview

--primary: #f43f5e;
--accent: #8b5cf6;
--surface: #0ea5e9;
About this piece

Color Preview

CSS lines with inline color swatch squares next to each hex value.

Usage

The import and the props worth knowing about, in one place.

import { Editor26 } from "@/components/beste/piece/editor26";

<Editor26
  colors={[
    {
      "key": "--primary",
      "value": "#f43f5e"
    },
    {
      "key": "--accent",
      "value": "#8b5cf6"
    },
    {
      "key": "--surface",
      "value": "#0ea5e9"
    }
  ]}
  bordered={false}
/>

More Editor pieces

View all Editor
const greet = (name: string) => `Hello, ${name}!`;

Launch Checklist

Ship with confidence by running through the five-point review.

  • Verify preview URL
  • Run smoke suite
  • Tag the release
1function·greet(name)·{
2→return·`Hello,·${name}!`;
3}
1// TODO migrate to server components
2// FIXME handles null state poorly
3// NOTE revisit once design lock lands
button.tsx
export function Button({ label }) {
return <button>{label}</button>;
return <button className="btn">{label}</button>;
}
const name = user.prfile.name;Property 'prfile' does not exist on type 'User'.