Skip to content

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-types
bash
npm install @codeandfunction/callaloo-types
bash
yarn add @codeandfunction/callaloo-types

Example usage

typescript
import { CLOption } from '@codeandfunction/callaloo-types';

const selectOptions: CLOption[] = [
  { label: 'Option 1', value: '1' },
  { label: 'Option 2', value: '2', disabled: true }
];

Released under the MIT License.