1.0.25 • Published 3 years ago

mui-color-button v1.0.25

Weekly downloads
31
License
MIT
Repository
-
Last release
3 years ago

Material-UI Color Button

Friendly customizable material-ui color button

Overview

Material-UI buttons are nice-looking, but they feel almost like a template when you interact with them. Material-UI color button, on the other hand, feels friendly and like a native part of aa UI.

Getting Started

Install

npm install mui-color-button

Example

For simplicity, here's example code and output so you can start building right away

Code

<ColorButton
  label={"Woohoo!"}
  textColor={"white"}
  backgroundColor={"red"}
/>

Properties

label: string or React component, the title/body of the button;
textColor: string, representing a color;
backgroundColor: string, representing a color;
fontSize?: number, size of button font;
buttonPadding?: number, vertical padding of button;
buttonPaddingHorizontal?: number, horizontal padding of button;
borderRadius?: number, button corner radius (round colors = friendly);
isBold?: boolean, true if text should be bold;
onClick?: (event: React.MouseEvent) => any, on button click action;
style?: React.CSSProperties, additional custom style to add to the button;
children?: React.ReactNode, unstyled body component of the button;
onHoverProps?: CoreProps, describes how the button on hover;

Quick pointers

  • Just try it out, you'll be up and running in 30 seconds
1.0.25

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.17

3 years ago

1.0.9

3 years ago

1.0.7

3 years ago

1.0.14

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago