NexoreUI
2.0
InstallationComponentsIconsTemplatesNewNexore MakePricing
Create Project
GitHub
NexoreUI
2.0
Navigation
InstallationComponentsIconsTemplatesNexore MakeCreate Project
InstallationComponents OverviewIcons
Categories (65)
ButtonInputCheckboxSelectSwitchSliderRatingFile Upload
CardAccordionTabsTableStepperScroll AreaNavigationDockData DisplayChartsCommerce
Modal (Dialog)AlertBadgeAvatarTooltipProgressSkeletonLoadersToasterSocial
Aurora Border CardAurora Search PillAI Prompt InputCommandInteractive Code BlockPro AI
Media ShowcaseOverlays & DrawersPro ButtonsPro DashboardsPro E-CommercePro FeedbackPro FormsPro InputsPro LayoutsPro ListsPro MarketingPro NavigationPro TablesSpecial FormsUltra Components
OverviewPro CardsPro ObjectsSoundPulseSilkUnveilNode Flow Graph
NexoreUI v2.0Studio
DocsInteractive Code Block

Interactive Code Block

macOS-inspired code presentation card with instant 1-click copy feedback and vibrant theme styling.

PreviousMorphing Geometry
NextAI Prompt Input
On This Page
Quick ActionsProject StudioNewNexore Make (AI)Source on GitHub
New Component

Interactive Code Block

A macOS-inspired code presentation card with instant 1-click copy feedback, syntax layout, line numbering, and vibrant theme styling.

npx nexoreui add interactive-code-block

Interactive Playground

HeroComponent.tsx
React 19
1import { Button, AuroraBorderCard } from "nexoreui";
2
3export function WelcomeHero() {
4 return (
5 <AuroraBorderCard variant="aurora" glow="medium">
6 <h1 className="text-2xl font-bold">Build Faster</h1>
7 <Button variant="aurora">Get Started</Button>
8 </AuroraBorderCard>
9 );
10}

Configure Props

Usage Examples

1. Aurora Glow Terminal Theme

studio.config.ts
TypeScript
1const studio = new NexoreStudio({
2 theme: "aurora",
3 acceleration: "hardware-60hz",
4});
component.tsx
1

2. Neon Cyberpunk Theme

aiService.ts
API
1export async function queryAI(prompt: string) {
2 const response = await fetch("/api/make-ai", {
3 method: "POST",
4 body: JSON.stringify({ prompt }),
5 });
6 return response.json();
7}
component.tsx
1
Page 1 of 2

API Reference

PropTypeDefaultDescription
codestring-Source code string to render inside the block.
filenamestring"Component.tsx"File title displayed in the macOS titlebar.
theme"dark" | "aurora" | "neon" | "glass" | "midnight""dark"Visual color scheme styling.
showLineNumbersbooleantrueWhether numeric line numbers are shown.
highlightLinesnumber[][]Array of line numbers highlighted with subtle background tint.
copyablebooleantrueWhether the copy-to-clipboard button is rendered.