ButtonGroup
A Group of Buttons Literally
import { ButtonGroup } from "@neneys/ui"
ButtonGroup('#id', {..})
Parameters
| Param | Value |
|---|---|
| children | List of Button |
| direction | Direction |
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
})