1.3.1 • Published 11 months 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
11 months ago
1.2.6
11 months ago
1.3.0
11 months ago
1.2.5
11 months ago
1.2.4
11 months ago
1.2.3
11 months ago
1.2.2
11 months ago
1.2.1
11 months ago
1.2.0
11 months ago
1.1.7
11 months ago
1.1.6
11 months ago
1.1.5
11 months ago
1.1.4
11 months ago
1.1.3
11 months ago
1.1.2
11 months ago
1.1.1
11 months ago
1.1.0
11 months ago
1.0.18
11 months ago
1.0.16
11 months ago
1.0.15
11 months ago
1.0.14
11 months ago
1.0.13
11 months ago
1.0.12
11 months ago
1.0.11
11 months ago
1.0.10
11 months ago
1.0.9
11 months ago
1.0.8
11 months ago
1.0.7
11 months ago
1.0.6
11 months ago
1.0.5
11 months ago
1.0.4
11 months ago
1.0.3
11 months ago