Skip to content

List

The List component is a versatile container designed to display a collection of related ListItem elements. It offers various styling options, including outer borders, inner dividers between items, and customizable rounding, allowing you to create organized and visually appealing content presentations.

Add the List and ListItem components to your project using the OrbitUI CLI:

Terminal window
npx orbitkit@latest add list

Import the List and ListItem components and use them in your Astro components or pages. Place ListItem components inside the List to create your content structure.

The List component accepts the following props, which control its appearance:

PropTypeDefault
outerBordertrue, falsetrue
innerBorderstrue, falsetrue
roundednone, xs, sm, md, lg, xllg

This component accepts all the standard HTML attributes that a div element would.

The ListItem component represents an individual item within a List. It can function as a div, a (link), or button, providing interactivity.

PropTypeDefault
asdiv, a, buttondiv
activetrue, falsefalse
disabledtrue, falsefalse
roundednone, xs, sm, md, lg, xllg

This component accepts all the standard HTML attributes that a div, a, or button element would.