Launch-Woche50 % auf ein Jahr AuteurPläne ansehen
SpacesPro holen
Alle Komponenten

Code block Kostenlos

Tabs for each file on a sliding pill, line numbers, highlighted lines, and a copy button that turns into a tick.

Im Editor öffnen
1import { Toggle } from '@/components/velvo/toggle'2 3export default function Settings() {4  return <Toggle on={wifi} onChange={setWifi} label="Wi-Fi" />5}
Charakter
Verspielt
Kostenlos anmelden zum Herunterladen

Gut für

  • Docs, blogs, onboarding.

Nicht für

  • Editing code. It’s for reading.

Props

Direkt aus dem TypeScript der Komponente gelesen, also immer aktuell.

PropTypStandard
filesPflicht{ name: string; code: string }[]
highlightnumber[][]

Mit einem Skill noch besser

Gib deinem Agenten einen davon, und er nutzt Code block so, wie es gedacht ist.

Page structureKostenlos

Decides where it goes on the page and what sits around it.

$npx velvo skill page-structure
Skill lesen
Less is moreKostenlos

One of these per screen is plenty. This skill keeps it that way.

$npx velvo skill less-is-more
Skill lesen

Specs

Category
Surfaces
Tier
Free
Built with
React and TypeScript
Files
17
Size
363 KB
Needs
framer-motion
Install
npx velvo add code-block
Works with
Next.js, Vite, Remix, Expo web

Licence

Velvo free licence
  • Personal and commercial use
  • Change it however you like
  • No credit needed

Not for resale as a component or a UI kit.

Tags

surfaceschartnavigationfreereact
WeiterAvatar stack