;
}
export const ButtonsList = (args: argsButtons): JSX.Element => {
const { buttons } = args;
const eventEmitter = (ref: number) => console.log(`eventEmitter::${ref}`);
return (
{buttons.map(({ id, label, type, width, disabled, theme }) => (
))}
);
};
ButtonsList.args = {
buttons: [
{ id: 0, label: 'Btn 100%', type: 'primary', width: '100%', disabled: false },
{ id: 1, label: 'Btn 20%', type: 'primary', width: '20%', disabled: false, theme: 'red' },
{ id: 2, label: 'Btn default', type: 'primary', disabled: false, theme: 'red-solid' },
{ id: 3, label: 'Btn 136px', type: 'primary', width: '136px', disabled: false, theme: 'blue-solid' },
],
};
export const ButtonIcon = (args: ButtonProps): JSX.Element => {
const { id, label, type, width, disabled, icon } = args;
const eventEmitter = (ref: number) => console.log(`eventEmitter::${ref}`);
return (
);
};
ButtonIcon.args = { id: 5, label: 'Btn Icon', type: 'default', width: '200px', disabled: false, icon: faHome };
export const ButtonLoading = (args: ButtonProps): JSX.Element => {
const { id, label, type, width, disabled, loading } = args;
const eventEmitter = (ref: number) => console.log(`eventEmitter::${ref}`);
return (
);
};
ButtonLoading.args = { id: 6, label: 'Btn Loading', type: 'default', width: '200px', disabled: false, loading: true };
export const ButtonDisabledIconLoading = (args: ButtonProps): JSX.Element => {
const { id, label, type, width, disabled, loading, loadingIcon } = args;
const eventEmitter = (ref: number) => console.log(`eventEmitter::${ref}`);
return (
);
};
ButtonDisabledIconLoading.args = {
id: 7,
label: 'Btn Disabled Icon Loading',
type: 'default',
width: '200px',
disabled: true,
loading: true,
loadingIcon: faHome,
};
export const ButtonSecondary = (args: ButtonProps): JSX.Element => {
const { id, label, type, disabled } = args;
const eventEmitter = (ref: number) => console.log(`eventEmitter::${ref}`);
return ;
};
ButtonSecondary.args = { id: 2, label: 'Btn Secondary', type: 'secondary', disabled: false };