@squidit/react-css
v1.2.18
Published
React CSS is an abstraction of the Squid CSS framework
Downloads
1,544
Readme
Welcome to Wake Design System
⚡ Get the experience by browsing one of our platforms!
This framework provides low level utilities and UI components for building custom experiences.
Style
Our Design System can be seen here
Components
UI Components are currently offered as React (Web) components.
Installation
- Node version >= 18
- To use this library in your React project, you can install it via npm or yarn:
npm install @squidit/css @squidit/react-css
or
yarn add @squidit/css @squidit/react-css
- Add to your style.scss main file
$fontsFolderPath: "@squidit/css/dist/fonts";
@import "@squidit/css/src/scss/squid.scss";
@import "@squidit/react-css/dist/style.css";
How to Use
After installation, you can import and use the components as needed in your React components:
import React from 'react';
import { SqButton } from '@squidit/react-css';
const MyComponent = () => {
return (
<div>
<SqButton>Click Here</SqButton>
</div>
);
};
export default MyComponent;
Translations
The lib is available in English, Portuguese and Spanish. By default it is loaded in English, but you can change the lib language to Portuguese or Spanish as follows:
In your project's index, import the functions responsible for translating the lib, define the translation structure and call the translation function.
Here's an example on StackBlitz:
It is also possible to change translations for individual components, as shown in the example below
Customization
This library allows high flexibility and customization of the components. You can modify the default styles of the components using specific props or by overriding the styles via CSS.
License
This project is licensed under the MIT License.