import React from 'react';
import { withButton } from '.';
import CanvasContainer from '@techytools/ui/.storybook/components/CanvasContainer';
import CanvasStoryPadding from '@techytools/ui/.storybook/components/CanvasStoryPadding';
import { FontAwesomeIcon as FA } from '@fortawesome/react-fontawesome';
import { faUser } from '@fortawesome/free-solid-svg-icons';
import useShowStorybookCode from '@techytools/ui/hooks/useShowStorybookCode';
export const Buttons = (props) => {
useShowStorybookCode();
const Button = withButton({
size: 'sm',
...props,
ss: 'margin: 0 0.875rem 0.875rem 0;',
});
return (
<>
}>
Loading
}>
Outlined
}>
Text
} />
>
);
};
export default (props) => (
<>
>
);
export const code = `import { withButton } from '@techytools/ui/components/Button'; // optional (you can also use default export as Button )
const Button = withButton({
size: 'lg',
round: true,
ss: 'margin: 0 0.875rem 0.875rem 0;',
});
}
>
Loading
}>
Outlined
}>
Text
} />`;