ButtonGroup constructor

ButtonGroup({
  1. Object? child,
  2. List<Object?> children = const [],
  3. String? className,
  4. Map<String, Object?> props = const {},
  5. Map<String, Object?> style = const {},
  6. DartStyle? dartStyle,
})

Creates a button group with optional child content and styles.

Implementation

ButtonGroup({
  Object? child,
  List<Object?> children = const [],
  String? className,
  Map<String, Object?> props = const {},
  Map<String, Object?> style = const {},
  DartStyle? dartStyle,
}) : super(
        'div',
        props: mergeComponentProps(
          props,
          className: className,
          defaultStyle: const {
            'display': 'inline-flex',
            'align-items': 'center',
            'gap': '8px',
          },
          dartStyle: dartStyle,
          style: style,
        ),
        children: normalizeChildren(child, children),
      );