1.3.1 • Published 2 years ago
@najwer23snacks/button v1.3.1
This project features a simple and reusable button component built with React, TypeScript and CSS module. The button is designed to be accessible and customizable, making it suitable for various applications.
Install
yarn add @najwer23snacks/button --devnpm install @najwer23snacks/button --save-devExample
import { Button } from "@najwer23snacks/button";
export const Example = () => {
const handleClick = () => {
console.log("Button clicked!");
};
return (
<Button onClick={handleClick}>
Click!
</Button>
);
}CSS tokens
:root {
/* Fonts */
--n23snack-font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica,
Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
/* Button */
--n23snack-button-bg-color: #00a76f;
--n23snack-button-bg-color-hover: #007867;
--n23snack-button-bg-color-active: #004b50;
--n23snack-button-bg-color-focus: #00b8d9;
--n23snack-button-bg-color-disabled: #919eab;
--n23snack-button-font-color: #ffffff;
--n23snack-button-font-size: 18px;
--n23snack-button-font-weight: 700;
--n23snack-button-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.24), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}Let's connect!
1.3.1
2 years ago
1.2.6
2 years ago
1.3.0
2 years ago
1.2.5
2 years ago
1.2.4
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.18
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago