@net-advantage/nabs-ui-cards
v0.26.0
Published
Reusable React card layout control for the Nabs UI library.
Readme
nabs-ui-cards
Reusable React card flow control for the Nabs UI library.
Usage
import { Cards } from "@net-advantage/nabs-ui-cards/Cards";
import { Button } from "@net-advantage/nabs-ui-buttons/Button";
export function Example() {
return (
<Cards
layout="N"
columns={3}
items={[
{
id: "starter",
header: <strong>Starter</strong>,
content: <p>Good for smaller teams and simple projects.</p>,
actions: <Button variant="secondary">Select</Button>,
},
]}
/>
);
}Props
layoutcontrols the card flow.Nuses the normal row-major order andZuses a zig-zag flow.columnscontrols how many cards are shown horizontally.- Each item supports
header,content, andactionsslots.
The package exports Cards, CardItem, CardLayout, and CardsProps from the package entry point.
