samagra-ui-test
v1.0.26
Published
**Samagra UI - README**
Downloads
5
Readme
Samagra UI - README
Description
Samagra UI is an awseome Component Library built using javascript, styled components and react-styleguidist to use with React/NextJs Application.
Installation
$ npm install --save samagra-ui-test
$ yarn add samagra-ui-test
$ pnpm add samagra-ui-test
Demo
You can find the working demo here
Usage
Theme Provider
Wrap your application with the ThemeProvider
component to access the theme.
For ReactJS Project
import { ThemeProvider } from 'samagra-ui-test';
const App = () => {
// Your application components and logic
};
const rootElement = document.getElementById('root');
ReactDOM.render(
<ThemeProvider>
<App />
</ThemeProvider>,
rootElement
);
For NextJS Project
// _.app.
import { ThemeProvider } from 'samagra-ui-test';
const App = () => {
return (
<ThemeProvider>
<App />
</ThemeProvider>
)
};
Using Button Component
import { Button,Text } from 'samagra-ui-test';
const App = () => {
return (
<>
<Text> This is a simple Button</Text>
<Button label="Click Me" onClick={()=>console.log('Hello')}/>
</>
)
};
Roadmaps
License
This project is licensed under the MIT License.
Issues and Contributions
If you encounter any issues or have suggestions for improvement, please submit an issue. Contributions are welcome! Please fork the repository and create a pull request.
Thank you for using the Samagra UI!. If you have any questions or need further assistance, feel free to reach out to us. Happy coding!