Base Attributes
All Whisper Components contain certain Attributes to help identify and style the component.
Last updated
Was this helpful?
All Whisper Components contain certain Attributes to help identify and style the component.
Last updated
Was this helpful?
WhisperComponents
are the individual elements, whether visible or not, that build up the UI of a Whisper in Olive Helps. While each type of component produces something different, they all have some attributes in common with each other, as described below:
id (Optional):
id of the component
Used to maintain object state across
undefined
by default
type:
The type of component that the configuration object is creating. . Enumerations that includes Button
, CheckBox
, Markdown
and etc.
This is automatically inferred when using
key (Optional):
The key is used to maintain the object state across
The component's key must be unique among its sibling components.
undefined
by default
layout (Optional):
Defined . Provides a way to configure the spacing and space occupied by individual components.
undefined
by default.
Note: Some component types may have their own default styling.
Defines the of the flex item. Negative values are considered invalid. Defaults to 1
when omitted. (initial is 0
)
Defines the of the flex item. Negative values are considered invalid. Defaults to 1
when omitted. (initial is 1
)
Defines the of the flex item. A preferred size of 0
must have a unit to avoid being interpreted as a flexibility. Defaults to 0
when omitted. (initial is auto
)The default flex
value is same as CSS's initial value, which is:
Reference :
Icon
- Renders requested icon, chosen from . Icons can be placed inside of Box components.
Markdown
- A basic component where can be added, granting greater flexibility with information presentation.