Ori Logo
Command Palette
Search for a command to run
0

Simple Card

A simple card component with a title, description, and content area.


Card Title

This is a simple card description.

Card content goes here. You can add any elements you like!
Simple Card Preview

Bottom Heading.

Installation

Usage

import SimpleCard from "$lib/components/ori/simple-card.svelte";
<SimpleCard>
	{#snippet headingTop()}
		<h3 class="text-lg font-semibold">Card Title</h3>
	{/snippet}
	{#snippet body()}
		<div class="flex items-center justify-center h-full text-muted-foreground">Preview Content</div>
	{/snippet}
	{#snippet headingBottom()}
		<p>This is a small description for the card.</p>
	{/snippet}
</SimpleCard>

Props

Prop Type Description
class string Optional additional classes for the root card
headingTop Snippet Content rendered at the top of the card
body Snippet Main content area (fills available space)
headingBottom Snippet Content rendered at the bottom of the card