zero.appdocs

Card

Presentations v1.0 zero-schema

No description provided.

Required fields

PresentationType Child

Properties

PresentationType string required
A Card is a widget used to create a rectangular visual element that can contain other widgets, with customizable properties like padding, margin, color, and alignment.
Allowed Card
BackgroundColor string optional
The background color of the Card, which can be specified using color names, primary color ('primary'), or hexadecimal color codes.
Default "white"
Width number optional
The width of the Card in pixels.
Height number optional
The height of the Card in pixels.
Margin object optional
The margin around the Card in pixels. Specifies the space between this Card and other widgets.
Padding object optional
The padding inside the Card in pixels. Specifies the space between the Card's edge and its child widget.
MaxWidth number optional
The maximum width that the Card can occupy in pixels
MinWidth number optional
The minimum width that the Card can occupy in pixels.
Default 0
MaxHeight number optional
The maximum height that the Card can occupy in pixels
Default 0
MinHeight number optional
The minimum height that the Card can occupy in pixels.
BorderRadius number optional
The radius of the Card's corners, creating a rounded appearance, specified in pixels.
Default 0
BackgroundImage string optional
The background image of the Card, specified as a URL or image path
BackgroundOpacity number optional
The opacity of the Card's background, ranging from 0 (transparent) to 1 (opaque).
Default 1
BoxFit string optional
The method used to fit the background image within the Card, such as filling the Card or fitting the image.
Allowed Fill Cover FitHeight FitWidth Contain
BorderColor string optional
The color of the Card's border, specified as a color name, primary color ('primary'), or hexadecimal color code. Default is transparent.
Default "transparent"
BorderWidth number optional
The width of the Card's border, specified in pixels. Default is 0 (no border).
Default 0
Child object required
The child widget contained within the Card. This widget will be positioned and sized according to the Card's properties such as padding, margin, width, and height. It follows the layout rules set by the Card.

Studio editor metadata

Shapes the studio editor; not enforced at runtime.

BackgroundColor
{
  "OnChange": {
    "To": "{{ Id }}",
    "Handler": "Whisper"
  },
  "InitialValue": "{{ Value }}",
  "DisplayText": "BackgroundColor",
  "PresentationType": "ColorPicker"
}
BoxFit
"Select"
BorderColor
{
  "OnChange": {
    "To": "{{ Id }}",
    "Handler": "Whisper"
  },
  "InitialValue": "{{ Value }}",
  "DisplayText": "BorderColor",
  "PresentationType": "ColorPicker"
}