A simple patery ui button components
The PateryButton
already has ready-made styles. You just add it and some functions. So it is possible to have a simple button but still keep a modern look. You can add icons and different components. Let's experience with PateryButton.
<PateryButton>Hello</PateryButton>
Here is the output of the sample code. It is similar to what PateryButton can support.
hello
<PateryButton style={{ backgroundColor: "#4542f5", color: "#ffffff"}}>Hello</PateryButton>
<PateryButton style={{ backgroundColor: "#00ff4c", color: "#ffffff"}}>Hello</PateryButton>
<PateryButton style={{ backgroundColor: "#fc3826", color: "#ffffff"}}>Hello</PateryButton>
You cannot custom style by adding a className. Because unfortunately in v1 this function is not available.
Here is the output of the sample code. It is similar to what PateryButton can support.
hello
hello
hello
<PateryButton icon={"🧐"}>Hello</PateryButton>
Here is the output of the sample code. It is similar to what PateryButton can support.
hello
NOTES: Icons can be icon components of other libraries you can add.
<PateryButton icon={<Icon_Component/>}>Hello</PateryButton>
properties | condition |
---|---|
icon |
String/Component |