Skip to main content

ButtonGroup

ButtonGroup renders a horizontal group of buttons that share the same appearance, status, and size. Buttons within the group are visually connected.

Import

import { ButtonGroup, Button } from '@ui-kitten/components';

Basic Usage

import React from 'react';
import { Layout, ButtonGroup, Button } from '@ui-kitten/components';

const ButtonGroupExample = () => (
<Layout style={{ flex: 1, padding: 16, alignItems: 'center' }}>
<ButtonGroup appearance="outline" status="primary" size="medium">
<Button>Left</Button>
<Button>Middle</Button>
<Button>Right</Button>
</ButtonGroup>
</Layout>
);

Props

PropertyTypeDefaultDescription
appearance'filled' | 'outline' | 'ghost''filled'Visual style applied to all buttons in the group.
status'primary' | 'success' | 'info' | 'warning' | 'danger' | 'basic' | 'control''primary'Semantic color applied to all buttons in the group.
size'tiny' | 'small' | 'medium' | 'large' | 'giant''medium'Size applied to all buttons in the group.
childrenButton[]-Button elements.

Storybook

Live examples coming soon via Storybook.