Value Card
Horizontal card with icon and text, for values or features lists.
<arc-value-card>Overview
ValueCard puts an icon to the left of a heading and a description, for lists of company values, principles or benefits. FeatureCard stacks its icon above the text. ValueCard's side-by-side layout is shorter, so it fits tighter spaces and longer lists.
The icon is drawn in --accent-secondary, where FeatureCard's uses --accent-primary, so the two read differently on the same page. On hover the border brightens to --border-bright and a faint --accent-secondary glow appears.
The icon slot takes an SVG or other markup, and the icon property takes plain text when the slot is empty.
Guidelines
Do
- Put four to six cards in a two-column grid
- Use the `icon` slot for SVG icons
- Keep headings to two to four words
- Put a section heading above the grid
Don't
- Don't use it as a link. It has no `href`, so use FeatureCard for navigation
- Don't write descriptions so long that the text column dwarfs the icon
- Don't mix value cards and feature cards in the same grid row
- Don't change the icon color without changing the hover glow to match
Features
- The card fills the height of its grid cell, so cards in a row line up
- The heading renders as an `<h3>`
Preview
Ship small
Release in pieces a reviewer can read in one sitting.
Write it down
Decisions go in the doc, not only in chat.
Usage
<arc-value-card
heading="Quality First"
description="Every component built with accessibility in mind."
></arc-value-card>import { ValueCard } from '@arclux/arc-ui-react';
export default function Example() {
return (
<ValueCard
heading="Quality First"
description="Every component built with accessibility in mind."
/>
);
}<script setup>
import { ValueCard } from '@arclux/arc-ui-vue';
</script>
<template>
<ValueCard
heading="Quality First"
description="Every component built with accessibility in mind." />
</template><script>
import { ValueCard } from '@arclux/arc-ui-svelte';
</script>
<ValueCard
heading="Quality First"
description="Every component built with accessibility in mind." />import { Component } from '@angular/core';
import { ValueCard } from '@arclux/arc-ui-angular';
@Component({
imports: [ValueCard],
template: `
<arc-value-card
heading="Quality First"
description="Every component built with accessibility in mind."
></arc-value-card>
`,
})
export class MyComponent {}import { ValueCard } from '@arclux/arc-ui-solid';
export default function Example() {
return (
<ValueCard
heading="Quality First"
description="Every component built with accessibility in mind." />
);
}import { ValueCard } from '@arclux/arc-ui-preact';
export default function Example() {
return (
<ValueCard
heading="Quality First"
description="Every component built with accessibility in mind." />
);
}<!-- Auto-generated by @arclux/prism — do not edit manually -->
<!-- arc-value-card — requires value-card.css + base.css (or arc-ui.css) -->
<div class="arc-value-card">
<div class="card">
<div class="card__icon">★</div>
<div class="card__text">
<h3 class="card__title">Heading</h3>
<p class="card__desc">Description text goes here</p>
</div>
</div>
</div><!-- Auto-generated by @arclux/prism — do not edit manually -->
<!-- arc-value-card — self-contained, no external CSS needed -->
<style>
.arc-value-card .card:hover { border-color: rgb(51, 51, 64);
box-shadow: 0 0 20px rgba(139, 92, 246,0.06); }
</style>
<div class="arc-value-card" style="display: flex; flex-direction: column; height: 100%">
<div class="card" style="position: relative; display: flex; align-items: flex-start; gap: 24px; padding: 24px; flex: 1; border: 1px solid rgb(24, 24, 30); border-radius: 14px">
<div style="flex-shrink: 0; color: rgb(139, 92, 246); font-size: 24px; line-height: 1; padding-top: 2px">★</div>
<div style="display: flex; flex-direction: column; gap: 8px">
<h3 style="font-size: 17px; font-weight: 600; color: rgb(232, 232, 236); margin: 0">Heading</h3>
<p style="color: rgb(138, 138, 150); font-family: 'Host Grotesk', system-ui, sans-serif; font-size: 14px; line-height: 1.7; margin: 0">Description text goes here</p>
</div>
</div>
</div>API
iconstring''- Icon text displayed beside content
headingstring''- Card title
descriptionstring''- Card body text
See also
- CardContent container with a border and hover effects. When it links somewhere, the whole surface is the link and the border turns to a gradient on hover.
- Feature CardA card with an icon, a heading and a short description, for feature grids on landing pages.
- StatShows one short number, drawn large in the accent gradient, with a label under it.