import { Button } from 'reablocks';
import {
extendTheme,
PartialReablocksTheme
} from 'reablocks';
import { ThemeProvider } from 'reablocks';
import { theme } from 'reablocks';
export default {
title: 'Components/Elements/Button',
component: Button
};
export const Variants = () => (
);
export const Colors = () => (
);
export const TextColors = () => (
);
export const Disabled = () => (
);
export const Sizes = () => (
);
export const FullWidth = () => (
);
const BellIcon = () => (
);
export const WithIcon = () => (
}>
Start Icon
}>
End Icon
}>
Start Icon
}>
End Icon
}>
Start Icon
}>
End Icon
);
export const CustomTheme = () => {
const customTheme: PartialReablocksTheme = {
components: {
button: {
base: 'bg-lime-600 text-gray-300',
sizes: {
small: 'p-2',
medium: 'p-3',
large: 'p-4'
},
colors: {
default: {
filled: 'bg-lime-600 hover:bg-lime-700',
outline: 'border-lime-600',
text: 'text-gray-300'
}
}
}
}
};
return (
);
};
export const CustomColor = () => {
const customTheme: PartialReablocksTheme = {
components: {
button: {
colors: {
gradient: {
filled: 'bg-linear-to-r from-cyan-500 to-blue-500'
}
}
}
}
};
return (
);
};
export const CustomVariant = () => {
const customTheme: PartialReablocksTheme = {
components: {
button: {
variants: {
gradient: 'border rounded-lg'
},
colors: {
default: {
gradient: 'bg-linear-to-r from-cyan-500 to-blue-500 border-blue-500'
},
primary: {
gradient:
'bg-linear-to-r from-violet-500 to-fuchsia-500 border-violet-500'
}
}
}
}
};
return (
);
};
export const CustomSize = () => {
const customTheme: PartialReablocksTheme = {
components: {
button: {
sizes: {
xsmall: 'text-xs px-1 py-0.5',
xlarge: 'text-2xl px-6 py-3'
}
}
}
};
return (
);
};