Function inlineStylesToObject

  • Converts a string of CSS styles to an object.

    Parameters

    • styles: string

    Returns Record<string, string>

    This function is used to convert a string of CSS styles to an object by splitting the string into key-value pairs and returning an object of styles where it can be used to apply inline styles to an element.

    Source

    0.4.0