UI helpers
import {
useCurrentLanguage,
useBackgroundStyle,
useButtonStyles,
createTextStyle,
getColorHex,
getBackgroundStyle,
getContrastTextColor,
isColorDark,
} from '@lightspeed/crane-api';TypeScript Types
import type { InferContentType, InferDesignType } from '@lightspeed/crane-api';
import content from './settings/content';
import design from './settings/design';
type Content = InferContentType<typeof content>;
type Design = InferDesignType<typeof design>;
// Now all composable calls are fully typed:
const title = useInputboxElementContent<Content>('title');
const titleStyle = useTextElementDesign<Design>('title_text');Last updated
Was this helpful?
