@codeandfunction/callaloo-types
v1.5.0
Published
Shared TypeScript definitions for the Callaloo UI library
Downloads
724
Readme
@codeandfunction/callaloo-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
# pnpm
pnpm add @codeandfunction/callaloo-types
# npm
npm install @codeandfunction/callaloo-types
# yarn
yarn add @codeandfunction/callaloo-typesExample usage
import { CLOption } from '@codeandfunction/callaloo-types';
const selectOptions: CLOption[] = [
{ label: 'Option 1', value: '1' },
{ label: 'Option 2', value: '2', disabled: true }
];