1.0.3 • Published 4 years ago
animasugitjs v1.0.3
AnimasugitJS
Next provides some basic components but they were not enough for me and were causing code repetition. This is a library for all the code snippets that I might use for projects involving Next.js and Typescript.
📦 Installation
This package is hosted on npm
.
npm install animasugitjs
🥑 Usage
<Link>
import { Link } from 'animasugitjs';
const App = () => {
return <Link href="https://animasugit.com">website</Link>;
};
<Dropdown>
import { Dropdown } from 'animasugitjs';
const App = () => {
return (
<Dropdown
value={country}
setValue={setCountry}
placeholder="Country"
options={[
{ value: 'India', label: 'India' },
{ value: 'USA', label: 'USA' },
{ value: 'UK', label: 'UK' },
{ value: 'Australia', label: 'Australia' },
]}
/>
);
};