Types
Shared TypeScript definitions and design tokens for the Callaloo UI library.
This package contains platform-agnostic TypeScript enums, interfaces, and types used by the Callaloo UI library.
Installation
bash
pnpm add @codeandfunction/callaloo-typesbash
npm install @codeandfunction/callaloo-typesbash
yarn add @codeandfunction/callaloo-typesExample usage
typescript
import { CLOption } from '@codeandfunction/callaloo-types';
const selectOptions: CLOption[] = [
{ label: 'Option 1', value: '1' },
{ label: 'Option 2', value: '2', disabled: true }
];