Code Tabs
Code Tabs is a React and Tailwind CSS navigation component from UI Layouts, licensed MIT. Copy it and paste it into your project.
UI Layouts
MIT
navigation
What it is
Code Tabs is a React and Tailwind CSS navigation component from UI Layouts, licensed MIT. Copy it and paste it into your project.
How to use it
Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.
Five free copies a month. No card.
No packages beyond the project baseline
Licence
This component comes from UI Layouts and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.
Code Tabs
import { CodeTabs } from '@/components/ui/code-tabs';
import React from 'react';
function CodeTabsCompponent() {
return (
<div className='w-full dark:bg-black bg-white p-4 rounded-lg'>
<CodeTabs
tabs={[
{ id: 'npm', label: 'npm', code: 'npm i thing', lang: 'bash' },
{ id: 'pnpm', label: 'pnpm', code: 'pnpm add thing', lang: 'bash' },
{ id: 'yarn', label: 'yarn', code: 'yarn add thing', lang: 'bash' },
]}
defaultValue='npm'
/>
<CodeTabs
tabs={[
{
id: 'ui-layouts',
label: 'ui-layouts',
code: 'npx ui-layouts add code-tabs',
lang: 'bash',
},
{
id: 'shadcn',
label: 'shadcn',
code: 'npx shadcn@latest add code-tabs',
lang: 'bash',
},
]}
isLogos={true}
defaultValue='ui-layouts'
/>
</div>
);
}
export default CodeTabsCompponent;