gradum-kit - v0.1.0
    Preparing search index...

    Function flexRowCenter

    • Function

      flexRowCenter

      Type Parameters

      • Tag extends keyof HTMLElementTagNameMap

        The tag of the element to create.

      Parameters

      • Optionalproperties: GradumProperties<Tag>

        Object containing properties of the element. Defaults to a <div> when no tag is given.

      Returns ValidHTMLElement<Tag>

      The created element, with display: flex, flex-direction: row, justify-content: center, and align-items: center applied.

      Create a horizontal flex row that also centers its children on both axes. Same as flexRow, with the centering styles applied on top.