@parentspath/shared-components

v0.1.1

Published

Shared React components and utilities for the parents-apps ecosystem (solids-buddy, parents-path, daily-cherish)

Readme

Shared Components - Parked

This nested shared-components package is parked.

Read first:

../_HANDOVER_2026-05-28_FINAL_DECISION.md

Current decision: Lovable owns production for now, and each app may keep its own local component library. Do not expand this nested package, publish it, or make app repos depend on it unless Uri explicitly revives shared npm/SCL work.

Historical notes below are retained only as reference.

Installation

npm install @parents-apps/shared-components
# or
yarn add @parents-apps/shared-components
# or
bun add @parents-apps/shared-components

Usage

import { LanguageSwitcher } from '@parents-apps/shared-components/ui';
import { cn } from '@parents-apps/shared-components/lib/cn';
import { useLocalStorage } from '@parents-apps/shared-components/hooks';

Components

UI Components

  • LanguageSwitcher - Language selection component
  • AgeBadge - Display baby age
  • AllergenBadge - Display allergen severity

Utilities

  • cn() - Class name merger with clsx + tailwind-merge
  • formatDate() - Date formatting utilities

Hooks

  • useLocalStorage() - Local storage persistence
  • useDebounce() - Debounced values

Peer Dependencies

  • react ^18.0.0
  • react-dom ^18.0.0
  • tailwindcss ^3.4.0

License

MIT