Skip to main content
Version: Next

ButtonGroup

A Group of Buttons Literally

import { ButtonGroup } from "@neneys/ui"

ButtonGroup('#id', {..})

Parameters​

ParamValue
childrenList of Button
directionDirection

Example​

import { Button, ButtonType, Action, DoAction, Text, ButtonGroup, Direction } from "@neneys/ui";

ButtonGroup('#btnGroup', {
children: [
Button('#button', {
child: Text('#buttonText', {text: "Hello World"}),
type: ButtonType.Primary,
onPressed: DoAction(Action.SHOW_TOAST, "Hello World")
}),
Button('#button', {
child: Text('#buttonText', {text: "Hello World"}),
type: ButtonType.Primary,
onPressed: DoAction(Action.SHOW_TOAST, "Hello World")
})
],
direction: Direction.Horizontal
})