Components
The Qmatic Canvas component library provides a set of UI elements that you can drag and drop onto your canvas to build interfaces.
Available Components
Button Component
Interactive button element with customizable styling.
Properties:
text
: Button label textbackgroundColor
: Background colortextColor
: Text colorborderRadius
: Corner roundingpadding
: Internal spacing
Example Usage:
- Drag from component library
- Set text in properties panel
- Customize colors and styling
- Position on canvas
Text Component
Display text content with various styling options.
Properties:
text
: Text contentfontSize
: Text sizefontWeight
: Text weight (normal, bold)textColor
: Text colortextAlign
: Alignment (left, center, right)
Input Component
Form input field for user data entry.
Properties:
placeholder
: Placeholder texttype
: Input type (text, email, password)borderColor
: Border colorbackgroundColor
: Background colorborderRadius
: Corner rounding
Image Component
Display images with various sizing and styling options.
Properties:
src
: Image source URLalt
: Alternative textwidth
: Image widthheight
: Image heightborderRadius
: Corner roundingobjectFit
: How image fits container
Component Lifecycle
- Creation: Components are created when dragged from the library
- Positioning: Components can be moved around the canvas
- Selection: Click to select and view properties
- Editing: Modify properties in the properties panel
- Deletion: Remove components using delete key or context menu
Theme Integration
All components automatically adapt to the current theme:
- Light Mode: Light backgrounds, dark text
- Dark Mode: Dark backgrounds (#171717), light text
- Custom Colors: Override with specific brand colors
Advanced Features
Component Hierarchy
Components maintain a z-index order that can be modified:
- Bring to front
- Send to back
- Layer management
Responsive Design
Components can be configured for different screen sizes:
- Desktop layouts
- Tablet adaptations
- Mobile optimizations
Component Templates
Save frequently used component configurations as templates for reuse across projects.