trika-composable-store-core
v1.0.0
Published
π **Composable Store Core for eCommerce Storefronts** A modular and reusable store core package for eCommerce applications using Next.js, TypeScript, and Tailwind.
Readme
trika-composable-store-core
π Composable Store Core for eCommerce Storefronts
A modular and reusable store core package for eCommerce applications using Next.js, TypeScript, and Tailwind.
π Features β Composable Architecture β Easily integrate into different projects. β TypeScript Support β Includes fully typed interfaces. β Optimized for Next.js β Works seamlessly with Next.js projects. β Structured API β Provides clear and well-organized entities
π¦ Installation
Install using npm or yarn:
npm install trika-composable-store-core
# or
yarn add trika-composable-store-coreπ Usage You can import the necessary types and utilities from trika-composable-store-core:
import { CatalogProductOption, BundledProductOption } from 'trika-composable-store-core';
const option: CatalogProductOption = {
optionId: '123',
name: 'Color',
isRequired: true,
};
const bundledOption: BundledProductOption = {
optionId: '456',
name: 'Size',
values: [{ id: '1', name: 'Medium', value: 'M' }],
};π API Reference
Types
- CatalogProductOption Defines a product option for a catalog item.
interface CatalogProductOption {
optionId?: string;
name?: string;
isRequired?: boolean;
isMultiValue?: boolean;
values?: ProductOptionValue[] | null;
}β FAQs
- How do I resolve missing types or dependencies? Ensure you have all required dependencies installed:
npm install --legacy-peer-depsπ License This project is copyrighted from Trika Technologies Pvt Ltd
