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
Blocks in your library are independent of sites. Create a block once, use it in multiple sites, update it everywhere at once.
Managing Your Library
Viewing Your Blocks
Creating New Blocks
Write your component
Use the in-browser editor to write your component code.
The editor provides syntax highlighting, auto-completion, and instant preview.
Editing Existing Blocks
Organizing Blocks
Keep your library organized:Use descriptive names
Name blocks clearly:
- ✅ “Hero Block”
- ✅ “Text with Image”
- ✅ “Card Grid”
- ❌ “Block 1”
- ❌ “Test”
Reusing Blocks Across Sites
Adding Blocks to a Site
Once a block is in your library, use it in any site:Add available blocks
In the “Available Blocks” section, click “Add Block” and select from your library.
Blocks in your library are available to all your sites. Create once, use everywhere.
Updating Blocks Globally
When you update a block in your library:Block Versions
Pala 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
Your library grows with every project. Blocks you build for one site become reusable assets for future projects.
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:Importing Blocks
Import blocks from others:Marketplace (Future Feature)
Pala 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:Hero Block
A flexible hero section with headline, subheadline, CTA, and optional background image. Supports multiple variants (default, large, minimal) and works on any page type.
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