Using Components
Save, reuse, and share components in your Omma projects.
Components#
Components are reusable code snippets that you can save from any project and reuse across your Omma chats.
Saving Components#
When you create something you want to reuse, save it as a component:
- Open a chat with the code you want to save
- Click the Save as Component button
- Give it a descriptive name and optional tags
- The component is added to your library
Using Components#
In Chat#
Reference saved components when creating new projects:
text
Use my "Animated Button" component and add it to a landing page
with a hero section.
From the Library#
- Open the Components view from the sidebar
- Browse or search your saved components
- Click to preview or insert into a new chat
Component Types#
UI Components#
Reusable UI elements like buttons, cards, navigation bars, and form elements.
3D Objects#
Saved 3D objects with materials and animations that can be inserted into scenes.
Layout Templates#
Full page layouts that serve as starting points for new projects.
Utilities#
Helper functions, animation utilities, and code snippets.
Community Components#
The Omma community gallery features components published by other users:
- Browse trending components
- Fork and customize community components
- Publish your own components for others to use
Community
Publishing to the community gallery makes your component visible to all Omma users.
Best Practices#
- Name descriptively — Use clear names that describe what the component does
- Add tags — Tags help with search and organization
- Keep focused — Each component should do one thing well
- Document usage — Add a description explaining how to use the component