Component Studio is a full-screen editor with HTML, CSS, and JavaScript code editors, a live preview panel with desktop/tablet/mobile viewports, and an AI chat sidebar for building components conversationally.
Component Studio is the full-screen editor for creating and editing individual components. Each component is a self-contained bundle of HTML, CSS, and optionally JavaScript that you can save to your library and insert into any page. Access it from NitroShock → Component Studio.
Component Studio has three main areas:
The component metadata form includes:
Quick-start buttons at the bottom of the Create tab:
Paste raw JSON in NitroShock component format to import a component. The JSON must include at minimum a name and html field. Optional fields: css, js, category, description.
The center panel has four tabs:
A live iframe that renders your component with your Brand Settings colors applied as CSS variables. Switch between Desktop, Tablet, and Mobile viewport sizes using the buttons above the preview. Changes in the code editors reflect immediately.
The component's markup. Action buttons: Minify, Format, Copy.
Component-specific styles. These do not affect other pages or components. Same Minify/Format/Copy actions.
Optional JavaScript for interactivity. Output as a <script> tag when the component is inserted into a page.
To share with other NitroShock users, click Share to Library. Shared components are submitted for review before appearing in the public central repository.
Two AI paths are available:
Standard Ctrl+Z / Cmd+Z works inside each code editor. The AI Chat sidebar also maintains a separate undo stack for AI-applied code changes.
Yes. Add <link> or <script src="..."> tags in the HTML editor to load external CSS or JavaScript when the component renders.
Component Studio tracks unsaved changes and shows a confirmation prompt before leaving.