What is the Component Library?
The Component Library stores all the blocks you create:- Blocks you build - Your custom components
- Available everywhere - Use blocks in any site
- Version controlled - Track changes and updates
- Shareable - Export and import blocks
Managing Your Library
Viewing Your Blocks
Open the Component Library
Browse your blocks
- Recently used - Blocks you’ve used recently
- All blocks - Complete list of your blocks
- Categories - If you’ve organized them
Creating New Blocks
Create a new block
Write your component
Add fields
Save to library
Editing Existing Blocks
Find the block
Open the block
Make changes
Save changes
Organizing Blocks
Keep your library organized:Use descriptive names
- ✅ “Hero Block”
- ✅ “Text with Image”
- ✅ “Card Grid”
- ❌ “Block 1”
- ❌ “Test”
Add descriptions
Use categories (if available)
- Content: Text, Image, Video
- Layout: Grid, Columns, Container
- Interactive: Form, Button, CTA
- Specialized: Testimonials, Pricing, FAQ
Reusing Blocks Across Sites
Adding Blocks to a Site
Once a block is in your library, use it in any site:Open page type editor
Add available blocks
Blocks are now available
Updating Blocks Globally
When you update a block in your library:Edit the block
Save changes
Changes apply everywhere
Block Versions
Primo tracks block versions:- View history - See previous versions of a block
- Revert changes - Go back to an earlier version if needed
- Compare versions - See what changed between versions
Building a Server Library
Start with Essentials
Build a core set of blocks:- Hero - Landing page hero sections
- Text - Rich text content
- Image - Image with optional caption
- Card Grid - Flexible grid layouts
- Call-to-Action - CTA sections
- Footer - Site footer
Expand Gradually
Add blocks as you need them:- Content blocks - Text, Image, Video, Code
- Layout blocks - Grid, Columns, Container, Spacer
- Interactive blocks - Form, Button, CTA, Modal
- Specialized blocks - Testimonials, Pricing Table, FAQ, Team
Refine and Improve
Continuously improve your blocks:- Add features - New fields, variants, options
- Improve styling - Better responsive design, animations
- Fix bugs - Address issues as you find them
- Optimize - Better performance, smaller code
Block Patterns
Simple Content Blocks
Basic blocks for common content: Text Block:- Rich text content
- Alignment options
- Background color
- Image upload
- Alt text
- Caption
- Full-width option
- Video upload or embed
- Autoplay options
- Caption
Layout Blocks
Blocks for organizing content: Card Grid:- Repeater for cards
- Configurable columns
- Responsive layout
- 2, 3, or 4 column layouts
- Equal or custom widths
- Responsive stacking
- Max-width container
- Padding options
- Background styling
Interactive Blocks
Blocks with user interaction: Call-to-Action:- Headline and description
- CTA button
- Background styling
- Form fields (repeater)
- Submit action
- Success message
- Trigger button
- Modal content
- Close options
Sharing Blocks
Exporting Blocks
Export blocks to share or backup:Select a block
Export
Share or backup
Importing Blocks
Import blocks from others:Open import
Select file
Review and import
Marketplace (Future Feature)
Primo will include a marketplace for:- Starter sites - Complete site templates
- Block packs - Collections of related blocks
- Individual blocks - Single blocks from the community
- Themes - Design system templates
Best Practices
1. Build Reusable Blocks
Design blocks to work in multiple contexts by choosing field names carefully:headline, content, image instead of context-specific names like homepage_headline or about_page_content.
2. Document Your Blocks
Add clear descriptions:3. Version Carefully
Test updates before saving:- Make changes in the editor
- Test with preview
- Check on multiple sites if possible
- Save when confident
4. Organize Early
Start organizing from the beginning:- Use clear naming conventions
- Add descriptions immediately
- Group related blocks
- Keep a consistent structure
5. Reuse and Refine
Don’t recreate blocks:- Check your library first
- Adapt existing blocks when possible
- Improve blocks over time
- Remove unused blocks
Common Workflows
Creating a New Site
Check your library
Reuse what you can
Create only what's needed
Updating a Block
Identify the block
Review usage
Test changes
Save and verify