Here is a list of all currently supported properties. Note that these are properties which are provived by Bevy ECSS but you can also add your own properties at anytime.
Before reading properties description, we'll use this notation to describe accepted values:
Notation Description
00.00%
Any percent value, like 93%
or 4.45%
00.00px
Any dimensional value, like 11px
or 0.99px
00.00
Any number value, like 0
or 14.2
<ident>
| <ident>
Only one of the identifiers are allowed, without quotes, like none
or hidden
<area-short-hand
> Allows the short hand area constructor
by using either dimensions or percentage, like 10px
or 5% 10px 3% auto
. No global values are supported yet
Style
properties
Property Values Description
display
flex
| none
Applies the display
property on display
field of all sections on matched Style
components.
position-type
absolute
| relative
Applies the position-type
property on position_type
field of all sections on matched Style
components.
direction
inherit
| left-to-right
| right-to-left
Applies the direction
property on direction
field of all sections on matched Style
components.
flex-direction
row
| column
| row-reverse
| column-reverse
Applies the flex-direction
property on flex_direction
field of all sections on matched Style
components.
flex-wrap
no-wrap
| wrap
| wrap-reverse
Applies the flex-wrap
property on flex_wrap
field of all sections on matched Style
components.
align-items
flex-start
| flex-end
| center
| baseline
| stretch
Applies the align-items
property on align_items
field of all sections on matched Style
components.
align-self
auto
| flex-start
| flex-end
| center
| baseline
| stretch
Applies the align-self
property on align_self
field of all sections on matched Style
components.
align-content
flex-start
| flex-end
| center
| stretch
| space-between
| space-around
Applies the align-content
property on align_content
field of all sections on matched Style
components.
justify-content
flex-start
| flex-end
| center
| space-between
| space-around
| space-evenly
Applies the justify-content
property on justify_content
field of all sections on matched Style
components.
overflow-x
visible
| hidden
Applies the overflow-x
property on overflow.x
field of all sections on matched Style
components.
overflow-y
visible
| hidden
Applies the overflow-y
property on overflow.y
field of all sections on matched Style
components.
left
00.00%
| 00.00px
Applies the property on left
field of all matched components.
right
00.00%
| 00.00px
Applies the property on right
field of all matched components.
top
00.00%
| 00.00px
Applies the property on top
field of all matched components.
bottom
00.00%
| 00.00px
Applies the property on bottom
field of all matched components.
width
00.00%
| 00.00px
Applies the property on width
field of all matched components.
height
00.00%
| 00.00px
Applies the property on height
field of all matched components.
min-width
00.00%
| 00.00px
Applies the property on min_width
field of all matched components.
min-height
00.00%
| 00.00px
Applies the property on min_height
field of all matched components.
max-width
00.00%
| 00.00px
Applies the property on max_width
field of all matched components.
max-height
00.00%
| 00.00px
Applies the property on max_height
field of all matched components.
flex-basis
00.00%
| 00.00px
Applies the property on flex_basis
field of all matched components.
flex-grow
0
| 1
| 2
Applies the property on flex_grow
field of all matched components.
flex-shrink
0
| 1
| 2
Applies the property on flex_shrink
field of all matched components.
aspect-ratio
00.00
| none
Applies the property on aspect_ratio
field of all matched components.
margin
<area-short-hand
> Applies the property on margin
field of all matched components.
padding
<area-short-hand
> Applies the property on padding
field of all matched components.
border
<area-short-hand
> Applies the property on border
field of all matched components.
row-gap
00.00%
| 00.00px
Applies the property on row_gap
field of all matched components.
column-gap
00.00%
| 00.00px
Applies the property on column_gap
field of all matched components.
Text
properties
Property Values Description
image-path
"path/to/image.png" Applies the property on image.texture
for all images
of matched components.