HEX
Server: Apache/2.4.65 (Debian)
System: Linux web6 5.10.0-36-amd64 #1 SMP Debian 5.10.244-1 (2025-09-29) x86_64
User: innocamp (1028)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/fxhealth/public_html/wp-content/themes/Divi/common/stories/controls/button-group.stories.js
// 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!'),
  },
};