Code block Бесплатно
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}Характер
Игривый
Зарегистрируйтесь бесплатно, чтобы скачать
Подходит для
- Docs, blogs, onboarding.
Не подходит для
- Editing code. It’s for reading.
Пропсы
Прочитаны прямо из TypeScript компонента, поэтому всегда актуальны.
ПропсТипПо умолчанию
filesОбязательный{ name: string; code: string }[]highlightnumber[][]Лучше с навыком
Добавьте навык агенту, и он будет использовать Code block так, как задумано.
Page structureБесплатно
Decides where it goes on the page and what sits around it.
$
Открыть навыкnpx velvo skill page-structureLess is moreБесплатно
One of these per screen is plenty. This skill keeps it that way.
$
Открыть навыкnpx 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.