Semana de lanzamiento50 % de descuento en un año de AuteurVer planes
EspaciosHazte Pro
Todos los componentes

Code block Gratis

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

Abrir en el editor
1import { Toggle } from '@/components/velvo/toggle'2 3export default function Settings() {4  return <Toggle on={wifi} onChange={setWifi} label="Wi-Fi" />5}
Carácter
Juguetón
Regístrate gratis para descargar

Úsalo para

  • Docs, blogs, onboarding.

No para

  • Editing code. It’s for reading.

Props

Leídas del propio TypeScript del componente, así que siempre están al día.

PropTipoPor defecto
filesObligatoria{ name: string; code: string }[]
highlightnumber[][]

Mejóralo con una skill

Añade una a tu agente y usará Code block tal como se diseñó.

Page structureGratis

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

$npx velvo skill page-structure
Leer la skill
Less is moreGratis

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

$npx velvo skill less-is-more
Leer la skill

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
SiguienteAvatar stack