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

    Function spacer

    • Function

      spacer

      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 flex-grow: 1 already applied.

      Create an element that absorbs the free space of its flex parent, pushing the siblings on either side of it apart.