renderCenter function
Renders a center alignment component.
Implementation
Component renderCenter(CenterProps props) {
return dom.div(
classes: 'arcane-center',
styles: const dom.Styles(raw: {
'display': 'flex',
'justify-content': 'center',
'align-items': 'center',
'width': '100%',
'height': '100%',
}),
[props.child],
);
}