/** * Position hint accepted by icon/spinner-bearing styled slots * (`Button.Icon`, `Button.Spinner`, `Chip.Icon`, etc.). Maps to a logical * `data-icon` attribute that CVA targets for leading/trailing padding. * * `'leading'` → `data-icon="inline-start"` * `'trailing'` → `data-icon="inline-end"` */ export type IconSlotPosition = 'leading' | 'trailing'; /** * Returns the data-attribute spread props for the requested position, or * `undefined` when no position is set (so the attribute is omitted entirely * and baseline spacing applies). * * Spread the result onto the rendered element: * * ```tsx * * ``` * * Spacing rules live in CVA variant strings, targeting the attribute via * logical-property utilities so RTL flips automatically: * * ```ts * cva(['data-[icon=inline-start]:me-1.5 data-[icon=inline-end]:ms-1.5'], { ... }); * ``` */ export declare function positionToDataIcon(position?: IconSlotPosition): Record | undefined; //# sourceMappingURL=positionToDataIcon.d.ts.map