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

    Function flexColCenter

    • Function

      flexColCenter

      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: column, justify-content: center, and align-items: center applied.

      Create a vertical flex column that also centers its children on both axes. Same as flexCol, with the centering styles applied on top.