1.0.6 • Published 2 years ago

magical-component v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

magical-component

magical is a react ui component library created for my grandma and now she is a magician all thanks to magical ui library 😁🤣

NPM JavaScript Style Guide

Install

npm install --save magical-component

Usage

import { useState } from "react";
import { MButton } from "magical-component";
export default function App() {
  const [count, setCount] = useState(0);
  return (
    <div className="App">
      <MButton
        focusIndicatorColor
        contentPosition="center"
        hoverState={{ status: true, background: null }}
        isLoading={{ status: false, indicator: "Loading..." }}
        variantColor=""
        content={`clicked: ${count}`}
        event={() => setCount((prevCount) => prevCount + 1)}
      />
    </div>
  );
}

License

MIT © Dami