hosanna-ui-docs - v0.9.0
    Preparing search index...

    Function interpolateString

    • Interpolates between two strings.

      • If both are hex colors, interpolates the color.
      • Otherwise, returns a or b based on the fraction.

      Parameters

      • a: string

        The starting string.

      • b: string

        The ending string.

      • fraction: number

        The interpolation fraction (0 to 1).

      Returns string

      The interpolated string.