Code block Free
Tabs for each file on a sliding pill, line numbers, highlighted lines, and a copy button that turns into a tick.
1import { Toggle } from '@/components/velvo/toggle'2 3export default function Settings() {4 return <Toggle on={wifi} onChange={setWifi} label="Wi-Fi" />5}Character
Playful
Sign up free to download
Use it for
- Docs, blogs, onboarding.
Not for
- Editing code. It’s for reading.
Props
Read from the component’s own TypeScript, so it’s always current.
PropTypeDefault
filesRequired{ name: string; code: string }[]highlightnumber[][]Make it better with a skill
Add one to your agent and it uses Code block the way it was designed.
Page structureFree
Decides where it goes on the page and what sits around it.
$
Read the skillnpx velvo skill page-structureLess is moreFree
One of these per screen is plenty. This skill keeps it that way.
$
Read the skillnpx velvo skill less-is-moreSpecs
- 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.