• Parse a CSS-like position into an array of position keywords among top, bottom, left, right and center

    Parameters

    • value: string | string[]
    • Optionaloptions: {
          allowCenter: boolean;
          cssOrder: boolean;
      } = ...
      • allowCenter: boolean

        allow "center center"

      • cssOrder: boolean

        force CSS order (y axis then x axis)

    Returns [string, string] | null