Widgets
Even though it's possible to create your own widgets Anathema aims to provide the necessary building blocks to represent almost any layout.
Widgets that draw them selves (e.g text
, span
and border
) support these default
attributes:
foreground
Foreground colour
Valid values:
- hex:
#ffaabb
- string: "green"
background
Background colour (see foreground
for valid values)
bold
Valid values:
true
or false
italic
Valid values:
true
or false
Default widgets
The following is a list of available widgets and their template names:
- Text (template name:
text
) - Span (template name:
span
) - Border (template name:
border
) - Alignment (template name:
alignment
) - VStack (template name:
vstack
) - HStack (template name:
hstack
) - ZStack (template name:
zstack
) - Expand (template name:
expand
) - Spacer (template name:
spacer
) - Position (template name:
position
) - Viewport (template name:
viewport
)