Adventureland Registry

Border Pattern

A lightweight div that applies a diagonal stripe CSS class for decorative left or bottom border accents.

BorderPattern renders a zero-content div that carries one of two CSS class names (border-pattern--stripe-diagonal__left or border-pattern--stripe-diagonal__bottom). Pair it with your design-system stripe styles to create subtle diagonal accent lines on card edges or section dividers.

Installation

npx shadcn@latest add @adv/border-pattern

Usage

import { BorderPattern } from '@/components/ui/BorderPattern';

// Left-edge accent
<BorderPattern position="left" />

// Bottom-edge accent
<BorderPattern position="bottom" />

Example

position="left"

position="bottom"

Props

PropTypeDefaultDescription
position"left" | "bottom"Required. Determines which stripe-diagonal CSS class is applied.
classNamestring""Additional CSS classes appended to the element.

On this page