@parentspath/shared-components
v0.1.0
Published
Shared React components and utilities for the parents-apps ecosystem (solids-buddy, parents-path, daily-cherish)
Downloads
90
Maintainers
Readme
@parentspath/shared-components
Shared React components and utilities for the parents-apps ecosystem.
Installation
npm install @parentspath/shared-components
# or
yarn add @parentspath/shared-components
# or
bun add @parentspath/shared-componentsUsage
import { LanguageSwitcher } from '@parentspath/shared-components/ui';
import { cn } from '@parentspath/shared-components/lib/cn';
import { useLocalStorage } from '@parentspath/shared-components/hooks';Components
UI Components
LanguageSwitcher- Language selection componentAgeBadge- Display baby ageAllergenBadge- Display allergen severity
Utilities
cn()- Class name merger with clsx + tailwind-mergeformatDate()- Date formatting utilities
Hooks
useLocalStorage()- Local storage persistenceuseDebounce()- Debounced values
Peer Dependencies
react^18.0.0react-dom^18.0.0tailwindcss^3.4.0
License
MIT