CLI previewInstall commands shown on this site are not released yet.

DocsComponentsCore

Card

React example follows below.
ts
import { Card } from "@grassroot/ui-react";
<Card eyebrow="01 · Infrastructure" title="ledger-api">
Event-sourced payments ledger. p95 142ms · 99.98% · 6 replicas.
</Card>
<Card framed eyebrow="02 · Stamp" title="Framed surface">
Ink rule, no shadow - the brand stamp treatment.
</Card>
ts
<script setup lang="ts">
import { Card } from "@grassroot/ui-vue";
</script>
<template>
<Card
eyebrow="01 · Infrastructure"
title="ledger-api"
>
Event-sourced payments ledger. p95 142ms · 99.98% · 6 replicas.
</Card>
<Card
framed
eyebrow="02 · Stamp"
title="Framed surface"
>
Ink rule, no shadow - the brand stamp treatment.
</Card>
</template>
ts
import { Component } from "@angular/core";
import { GrassrootCard } from "@grassroot/ui-angular";
@Component({
selector: "app-example",
standalone: true,
imports: [GrassrootCard],
template: `
<grassroot-card
eyebrow="01 · Infrastructure"
title="ledger-api"
>
Event-sourced payments ledger. p95 142ms · 99.98% · 6 replicas.
</grassroot-card>
<grassroot-card
[framed]="true"
eyebrow="02 · Stamp"
title="Framed surface"
>
Ink rule, no shadow - the brand stamp treatment.
</grassroot-card>
`,
})
export class ExampleComponent {
}
ts
<script lang="ts">
import { Card } from "@grassroot/ui-svelte";
</script>
<Card
eyebrow="01 · Infrastructure"
title="ledger-api"
>
Event-sourced payments ledger. p95 142ms · 99.98% · 6 replicas.
</Card>
<Card
framed
eyebrow="02 · Stamp"
title="Framed surface"
>
Ink rule, no shadow - the brand stamp treatment.
</Card>
ts
import { Card } from "@grassroot/ui-solid";
export function Example() {
return (
<>
<Card
eyebrow="01 · Infrastructure"
title="ledger-api"
>
Event-sourced payments ledger. p95 142ms · 99.98% · 6 replicas.
</Card>
<Card
framed
eyebrow="02 · Stamp"
title="Framed surface"
>
Ink rule, no shadow - the brand stamp treatment.
</Card>
</>
);
}

Installation

bash
pnpm dlx grassroot add ui/card
bash
npx grassroot@latest add ui/card
bash
yarn dlx grassroot add ui/card
bash
bunx grassroot add ui/card

API Reference

CardProps
PropTypeDefault
framedInk 1.5px rule, no shadow — the brand "stamp".boolean | undefinedfalse
eyebrowMono uppercase eyebrow above the title.string | undefined
titlestring | undefined