UNPKG

@humanspeak/svelte-headless-table

Version:

A powerful, headless table library for Svelte that provides complete control over table UI while handling complex data operations like sorting, filtering, pagination, grouping, and row expansion. Build custom, accessible data tables with zero styling opin

17 lines (16 loc) 475 B
/** * Converts a CSS style object into an inline style string. * * @param style - An object containing CSS property-value pairs. * @returns A semicolon-separated string of CSS declarations. * @example * ```typescript * stringifyCss({ color: 'red', fontSize: '14px' }) * // Returns 'color:red;fontSize:14px' * ``` */ export const stringifyCss = (style) => { return Object.entries(style) .map(([name, value]) => `${name}:${value}`) .join(';'); };