UNPKG

@builder.io/mitosis

Version:

Write components once, run everywhere. Compiles to Vue, React, Solid, and Liquid. Import code from Figma and Builder.io

6 lines (5 loc) 391 B
export type SlotMapper = (slotName: string) => string; export declare const isSlotProperty: (key: string, slotPrefix?: string) => boolean; export declare const stripSlotPrefix: (key: string, slotPrefix?: string) => string; export declare const toKebabSlot: (key: string, slotPrefix?: string) => string; export declare function replaceSlotsInString(code: string, mapper: SlotMapper): string;