Skip to main content

Bordex Border Styles API

addBlurBorder()

Returns: HTMLElement - return the HTMLElement passed as the first argument

Description:

Applies a blur border style to the specified element and returns that element.

PropertyTypesDescription
elementHTMLElementThe element to add the blur border
borderOptionsIBlurBorderOptionsOptional design properties like borderColor or borderWidth

addCornerBorder()

Returns: HTMLDivElement - A div element that wraps the target element with a blur border applied.

Description:

Applies a corner border style to the specified element and returns a new div element that wraps around the original element or the element provided.

PropertyTypesDescription
elementHTMLElementThe element to add the corner border
borderOptionsIShortHandBorderOptionsOptional design property like borderColor or borderStyle
classNamestringOptional class name to add to the border wrapper element

addDisjointedBorder()

Returns: HTMLDivElement - A div element that wraps the target element with a blur border applied.

Description:

Applies a disjointed border style to the specified element and returns a new div element that wraps around the original element or the element provided.

PropertyTypesDescription
elementHTMLElementThe element to add the disjointed border
borderOptionsIDisjointedBorderOptionsOptional design property like angle or borderColor
classNamestringOptional class name to add to the border wrapper element

addFancyBorder()

Returns: HTMLDivElement - A div element that wraps the target element with a blur border applied.

Description:

Applies a faancy border style to the specified element and returns a new div element that wraps around the original element or the element provided.

PropertyTypesDescription
elementHTMLElementThe element to add the fancy border
borderOptionsIShortHandBorderOptionsOptional design property like borderColor or borderWidth
classNamestringOptional class name to add to the border wrapper element

addGenericBorder()

Returns: HTMLElement - return the HTMLElement passed as the first argument

Description:

Applies a generic border style to the specified element and returns that element.

PropertyTypesDescription
elementHTMLElementThe element to add the generic border
borderStyleCommonBorderStylesOptional design property like borderColor or borderWidth
borderOptionsBorderOptionsOptionalOptional design property like borderColor or borderWidth

addGradientBorder()

Returns: HTMLDivElement - A div element that wraps the target element with a gradient border applied.

Description:

Applies a gradient border style to the specified element and returns a new div element that wraps around the original element or the element provided.

PropertyTypesDescription
elementHTMLElementThe element to add the gradient border
borderOptionsIGradientBorderOptionsOptional design property like angle or colors of the gradient
classNamestringOptional class name to add to the border wrapper element

addInsetBorder()

Returns: HTMLDivElement - A div element that wraps the target element with an inset border applied.

Description:

Applies an inset border style to the specified element and returns a new div element that wraps around the original element or the element provided.

PropertyTypesDescription
elementHTMLElementThe element to add the inset border
borderOptionsIInsetBorderOptionsOptional design property like borderOffset or borderStyle
classNamestringOptional class name to add to the border wrapper element

addOverlapBorder()

Returns: HTMLDivElement - A div element that wraps the target element with an overlap border applied.

Description:

Applies an overlap border style to the specified element and returns a new div element that wraps around the original element or the element provided.

PropertyTypesDescription
elementHTMLElementThe element to add the overlap border
borderOptionsFullBorderOptionsOptional design property like borderColor or borderStyle
classNamestringOptional class name to add to the border wrapper element

addStripeBorder()

Returns: HTMLDivElement - A div element that wraps the target element with a stripe border applied.

Description:

Applies a stripe border style to the specified element and returns a new div element that wraps around the original element or the element provided.

PropertyTypesDescription
elementHTMLElementThe element to add the stripe border
borderOptionsIStripeBorderOptionsOptional design property like stripeWidth or colors of the stripe
classNamestringOptional class name to add to the border wrapper element

addThinBorder()

Returns: HTMLDivElement - A div element that wraps the target element with a thin border applied.

Description:

Applies a thin border style to the specified element and returns a new div element that wraps around the original element or the element provided.

PropertyTypesDescription
elementHTMLElementThe element to add the thin border
borderOptionsIThinBorderOptional design property like color of the thin border or the side to apply the thin border
classNamestringOptional class name to add to the border wrapper element