How to Use
How to Use Nebula Components
Section titled “How to Use Nebula Components”Browsing Components
Section titled “Browsing Components”Navigate to the Components section to see all available components. Each component is displayed with:
- Live Preview: See the component rendered with its styles
- Code View: View the HTML and Tailwind CSS source code
- Copy Button: Copy the code to your clipboard
- Component Info: Title, description, category, and tags
Creating New Components
Section titled “Creating New Components”Use the “Create New” page to add components to the library:
- Enter a title and description
- Select a category or create a new one
- Add relevant tags
- Write your HTML code with Tailwind CSS classes
- Toggle preview on/off
- Save to Cloudflare KV
Code Format
Section titled “Code Format”Components should use standard HTML with Tailwind CSS classes:
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> Click me</button>- Use semantic HTML elements when possible
- Include responsive classes for mobile-first design
- Add meaningful class names for better readability
- Test your components in the preview before saving