Function flexrh

  • Transforms an element to a flex box where the child elements are reverse horizontally aligned.

    Example

    flexrh('tl') // Returns...
    
    {
    align-items: flex-start;
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: flex-end;
    }

    Parameters

    • alignment: Alignment = 'cc'

      Alignment style of child elements.

    • isInline: boolean = false

      Specifies if the element is inline (inline-flex instead of flex).

    Returns string

    CSS string.