@get-it-gone/component-library
v1.0.7
Published
## Installation
Downloads
574
Readme
Gone Component Library
Installation
npm install @get-it-gone/component-library
Required Peer Dependencies
The following packages are required as peer dependencies:
npm install @googlemaps/js-api-loader use-places-autocomplete lucide-react framer-motion @radix-ui/react-dialog @radix-ui/react-slot class-variance-authority
Setup
- Add the component library's Tailwind preset to your tailwind.config.js:
module.exports = {
presets: [
require('@get-it-gone/component-library/tailwind-preset')
],
// ... your config
}
- Configure required fonts in your CSS:
@font-face {
font-family: 'Rockwell';
/* Add your font configuration */
}
@font-face {
font-family: 'Source Sans';
/* Add your font configuration */
}
- For components using Google Places (like PickupRequestForm), set up your Google Maps API:
// In your app initialization
import { Loader } from '@googlemaps/js-api-loader';
const loader = new Loader({
apiKey: process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY,
version: "weekly",
libraries: ["places"]
});
loader.load();
Available Components
UI Components
- Button
- Card
- CustomButton
- FormDropdown
- FormInput
- MessageBubble
- Modal
- PickupRequestForm
- PickupRequestManager
- ProductCard
- Progress
- ShoppingCart
- SwipeCardDeck
- Tag
- Toggle
Layout Components
- Header
- Footer
- Page
Documentation
Places Autocomplete Setup
To use the address autocomplete feature:
- Install required dependencies:
npm install use-places-autocomplete
Set up your Google Maps API key
Load the Google Maps JavaScript API with Places library