diff --git a/package-lock.json b/package-lock.json index 0f36ed9c..3b88da8e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "reablocks", - "version": "8.1.4", + "version": "8.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "reablocks", - "version": "8.1.4", + "version": "8.4.0", "license": "Apache-2.0", "dependencies": { "@floating-ui/react": "^0.26.16", diff --git a/src/elements/Button/Button.story.tsx b/src/elements/Button/Button.story.tsx index dcaf94ab..19850606 100644 --- a/src/elements/Button/Button.story.tsx +++ b/src/elements/Button/Button.story.tsx @@ -157,3 +157,78 @@ export const CustomTheme = () => { ); }; + +export const CustomColor = () => { + const customTheme: PartialReablocksTheme = { + components: { + button: { + colors: { + gradient: { + filled: 'bg-gradient-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-gradient-to-r from-cyan-500 to-blue-500 border-blue-500' + }, + primary: { + gradient: + 'bg-gradient-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 ( + +
+ + +
+
+ ); +};