mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 21:31:28 +04:00
Narrow component prop types, remove unused props and dead code (#2838)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -9,15 +9,13 @@ type PolymorphicProps = { as?: HTMLTag }
|
||||
|
||||
interface Props extends PolymorphicProps {
|
||||
title?: string
|
||||
/** card-header-light */
|
||||
light?: boolean
|
||||
class?: string
|
||||
}
|
||||
|
||||
const { title, as: TitleTag = 'h3', light, class: className }: Props = Astro.props
|
||||
const { title, as: TitleTag = 'h3', class: className }: Props = Astro.props
|
||||
---
|
||||
|
||||
<div class:list={['card-header', light && 'card-header-light', className]}>
|
||||
<div class:list={['card-header', className]}>
|
||||
{title && <TitleTag class:list={['card-title']}>{title}</TitleTag>}
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user