A React component library for creating beautiful and customizable UI components, including the floating action button (FloatButton
) and other reusable design elements.
This library is built to help developers quickly integrate modern UI components into their React projects, with a focus on simplicity, customization, and performance.
To use woori-design
in your project, install it via npm or Yarn.
npm install woori-design
Or with Yarn:
yarn add woori-design
Here's an example of how to use the FloatButton
component:
import React from "react";
import { FloatButton } from "woori-design";
const App = () => {
return (
<div>
<h1>Hello, woori-design!</h1>
<FloatButton label="Click Me" onClick={() => alert("Button Clicked!")} />
</div>
);
};
export default App;
- Reusable Components: Prebuilt components to speed up your development.
- Customizable: Easily style components using props or external styles.
- Lightweight: Minimal dependencies and optimized for performance.
A floating action button that can be positioned anywhere on the screen.
Prop | Type | Default | Description |
---|---|---|---|
label |
string |
Required | The text displayed inside the button. |
onClick |
func |
() => {} |
Callback triggered when button is clicked. |
style |
object |
{} |
Custom styles to override default styles. |
To set up the project locally:
-
Clone the repository:
git clone https://github.com/woorifisa-service-dev-4th/Woori-design cd woori-design
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Build the package:
npm run build
- NPM: woori-design
- GitHub: woori-design repository
This project is licensed under the MIT License.