2.0.7 • Published 1 year ago

@salsaflavio/my-ui-components v2.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@salsaflavio/my-ui-components

A collection of reusable UI components for React and Next.js using Tailwind CSS.

✨ Installation

npm install @salsaflavio/my-ui-components

🧩 Usage

import { Button, HomeIcon } from '@salsaflavio/my-ui-components'

export default function Example() {
  return (
    <div>
      <Button className="bg-blue-500 text-white">Click Me</Button>
      <HomeIcon className="w-6 h-6 text-gray-700" />
    </div>
  )
}

🎨 Tailwind Setup Required

Make sure your project has Tailwind CSS installed and includes the module in content:

tailwind.config.js

module.exports = {
  content: [
    './node_modules/@salsaflavio/my-ui-components/**/*.{js,ts,jsx,tsx}',
    './app/**/*.{js,ts,jsx,tsx}' // or your project paths
  ],
  theme: {
    extend: {}
  },
  plugins: []
}

And include this in your global CSS:

@tailwind base;
@tailwind components;
@tailwind utilities;

📜 License

MIT

📦 Peer Dependencies

This package requires the following peer dependencies to be installed in your app:

yarn add recharts
2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago