webcoreui
Version:
UI component and template library for Astro, Svelte, and React apps styled with Sass.
23 lines (19 loc) • 530 B
text/typescript
import type { Snippet } from 'svelte'
export type CardProps = {
element?: string
title?: string
titleTag?: string
compact?: boolean
className?: string
bodyClassName?: string
secondary?: boolean
[key: string]: any
}
export type SvelteCardProps = {
children: Snippet
} & CardProps
export type ReactCardProps = {
Element?: keyof JSX.IntrinsicElements
TitleTag?: keyof JSX.IntrinsicElements
children: React.ReactNode
} & Omit<CardProps, 'titleTag' | 'element'>