Skip to content

Conversation

@PetarStoev02
Copy link
Contributor

Summary

  • Migrates the AddressBook component to shadcn registry format
  • Creates the foundational registry structure for w3-kit components
  • Component can now be installed via npx shadcn@latest add @w3-kit/address-book

Changes

  • New Files:
    • registry/w3-kit/address-book/address-book.tsx - Main component (refactored)
    • registry/w3-kit/address-book/types.ts - TypeScript interfaces
    • registry/w3-kit/address-book/utils.ts - Utility functions and constants
    • registry.json - shadcn registry manifest
    • components.json - shadcn configuration

Component Structure

registry/w3-kit/address-book/
├── address-book.tsx    # Main component
├── types.ts            # TypeScript interfaces
└── utils.ts            # Utilities and constants

Installation

npx shadcn@latest add @w3-kit/address-book

Test plan

  • Verify registry.json is valid JSON
  • Verify component exports work correctly
  • Test component renders in isolation
  • Verify dark mode support
  • Test all CRUD operations (Add, Edit, Delete)

Closes #1

- Create registry directory structure at registry/w3-kit/address-book/
- Extract TypeScript interfaces to types.ts
- Extract utility functions and constants to utils.ts
- Create address-book.tsx with modular imports
- Add registry.json with @w3-kit/address-book component entry
- Add components.json for shadcn configuration

Component can now be installed via:
npx shadcn@latest add @w3-kit/address-book

Closes #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Migration] Migrate AddressBook to shadcn registry

2 participants