Section constructor
Section({})
Creates a section around child content.
Implementation
Section({
String? title,
String? description,
Object? actions,
Object? child,
List<Object?> children = const [],
String? className,
Map<String, Object?> props = const {},
Map<String, Object?> style = const {},
DartStyle? dartStyle,
}) : super(
'section',
props: mergeComponentProps(
props,
className: className,
defaultStyle: const {
'display': 'grid',
'gap': '14px',
'margin-bottom': '24px',
},
dartStyle: dartStyle,
style: style,
),
children: [
if (title != null || description != null || actions != null)
_sectionHeader(title, description, actions),
...normalizeChildren(child, children),
],
);