Feature Card
Display a feature with icon, title, and description. Perfect for landing pages and feature showcases.
Preview
Installation
Terminalbash
Usage
Reacttsx
Examples
Static
Amazing Feature
This is a static card without a link. Great for non-interactive displays.
import { FeatureCard } from 'noorui-rtl'
import { Sparkles } from 'lucide-react'
<FeatureCard
icon={Sparkles}
title="Amazing Feature"
description="This feature will change your life"
/>Clickable
import { FeatureCard } from 'noorui-rtl'
import { Rocket } from 'lucide-react'
// Card becomes clickable when href is provided
<FeatureCard
icon={Rocket}
title="Get Started"
description="Click to learn how to begin"
href="/getting-started"
/>Grid Layout
import { FeatureCard } from 'noorui-rtl'
import { Zap, Shield, Package } from 'lucide-react'
import { useDirection } from '@/components/providers/direction-provider'
import { content } from '@/lib/i18n'
<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
<FeatureCard
icon={Zap}
title="Lightning Fast"
description="Optimized for performance"
href="/components"
/>
<FeatureCard
icon={Shield}
title="Secure by Default"
description="Built with security in mind"
href="/documentation"
/>
<FeatureCard
icon={Package}
title="Easy to Use"
description="Simple API, powerful results"
href="/examples"
/>
</div>RTL Support
FeatureCard automatically adapts to RTL layouts. The icon and text alignment mirror based on the current direction.
Reacttsx
Props
| Name | Type | Default | Description |
|---|---|---|---|
titleRequired | string | — | The title/heading of the feature card |
descriptionRequired | string | — | The description text explaining the feature |
iconRequired | LucideIcon | — | Lucide icon component to display |
href | string | — | Optional link URL. When provided, the card becomes clickable |
className | string | — | Additional CSS classes to apply |
Best Practices
Do
- ✓ Use meaningful icons that represent the feature
- ✓ Keep titles short and descriptive (2-5 words)
- ✓ Provide clear, benefit-focused descriptions
- ✓ Use consistent icon style across all feature cards
- ✓ Ensure adequate spacing between cards for visual clarity
Don't
- ✗ Don't use for long-form content
- ✗ Don't use different icon styles within the same section
- ✗ Don't overcrowd the layout with too many features at once
- ✗ Don't use vague titles or descriptions
- ✗ Don't neglect to provide icons when showcasing features