| Server IP : 72.60.233.178 / Your IP : 216.73.216.91 Web Server : Apache System : Linux srv1210665.hstgr.cloud 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : armaladmin ( 1001) PHP Version : 8.3.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/armaladmin/public_html/wp-content/themes/Divi/common/stories/controls/ |
Upload File : |
// External dependencies.
import React from 'react';
// Internal dependencies.
import Button from '@common-ui/controls/button/button';
import ETCommonButtonGroup from '@common-ui/controls/button-group/button-group';
const Buttons = (
<>
<Button className='et-common-button et-common-button--primary'>Button 1</Button>
<Button className='et-common-button et-common-button--danger'>Button 2</Button>
<Button className='et-common-button et-common-button--success'>Button 3</Button>
<Button className='et-common-button et-common-button--tertiary'>Button 4</Button>
</>
);
export default {
title: 'Controls/Button Group',
component: ETCommonButtonGroup,
argTypes: {
onClick: {
action: 'clicked',
table: {
disable: true,
},
},
},
args: {
children: Buttons,
style: {
padding: '10px',
},
},
};
export const Horizontal = {};
export const Vertical = {
args: {
vertical: true,
},
};
export const Block = {
args: {
block: true,
},
};
export const Danger = {
args: {
danger: true,
},
};
export const Elevate = {
args: {
elevate: true,
},
};
export const Info = {
args: {
info: true,
},
};
export const Inverse = {
args: {
inverse: true,
},
};
export const Primary = {
args: {
primary: true,
},
};
export const Success = {
args: {
success: true,
},
};
export const Warning = {
args: {
warning: true,
},
};
export const WithCustomStyle = {
args: {
style: { backgroundColor: 'lightblue' },
},
};
export const WithOnClick = {
args: {
onClick: () => alert('Button group clicked!'),
},
};