rmg-generic-components
v1.0.3
Published
A library of generic components for React Mockup Generator project.
Downloads
8
Readme
RMG Generic Components
RMG Generic Components is a library of reusable React components designed to streamline your development process.
Installation
Install the library using npm:
npm install rmg-generic-componentsUsage
Below are examples of how to use the components:
Importing Components
Instead of importing each component separately, you can import them all from a single entry point:
import { RMGButton, RMGHeader, RMGImage, RMGInput, RMGSubtitle, RMGText } from 'rmg-generic-components/core';Example Usage of RMGButton
import React from 'react';
import { RMGButton } from 'rmg-generic-components/core';
function App() {
return (
<div>
<RMGButton label="Click Me" onClick={() => alert("Button clicked!")} />
</div>
);
}
export default App;