1.3.1 • Published 1 year 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 --dev
npm install @najwer23snacks/button --save-dev
Example
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
1 year ago
1.2.6
1 year ago
1.3.0
1 year ago
1.2.5
1 year ago
1.2.4
1 year ago
1.2.3
1 year ago
1.2.2
1 year ago
1.2.1
1 year ago
1.2.0
1 year ago
1.1.7
1 year ago
1.1.6
1 year ago
1.1.5
1 year ago
1.1.4
1 year ago
1.1.3
1 year ago
1.1.2
1 year ago
1.1.1
1 year ago
1.1.0
1 year ago
1.0.18
1 year ago
1.0.16
1 year ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago