Semana de lançamento50% de desconto em um ano de AuteurVer planos
EspaçosAssinar o Pro
Todos os componentes

Code block Grátis

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

Abrir no editor
1import { Toggle } from '@/components/velvo/toggle'2 3export default function Settings() {4  return <Toggle on={wifi} onChange={setWifi} label="Wi-Fi" />5}
Caráter
Brincalhão
Cadastre-se grátis para baixar

Use para

  • Docs, blogs, onboarding.

Não use para

  • Editing code. It’s for reading.

Props

Lidas do próprio TypeScript do componente, então estão sempre atualizadas.

PropTipoPadrão
filesObrigatória{ name: string; code: string }[]
highlightnumber[][]

Melhore com uma skill

Adicione uma ao seu agente e ele usa Code block do jeito que foi pensado.

Page structureGrátis

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

$npx velvo skill page-structure
Ler a skill
Less is moreGrátis

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

$npx velvo skill less-is-more
Ler a 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
PróximoAvatar stack