mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 13:21:29 +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:
@@ -7,9 +7,11 @@ import type { HTMLTag } from 'astro/types'
|
||||
// literally named `as` and silently falls back to untyped props.
|
||||
type PolymorphicProps = { as?: HTMLTag }
|
||||
|
||||
/** core/scss/ui/_cards.scss `.card-{size}` body padding modifier classes */
|
||||
type CardSize = 'sm' | 'md' | 'lg'
|
||||
|
||||
interface Props extends PolymorphicProps {
|
||||
/** card-{size} body padding: sm | md | lg */
|
||||
size?: string
|
||||
size?: CardSize | undefined
|
||||
class?: string
|
||||
/** remaining attributes (id, action, data-*, …) are forwarded to the element */
|
||||
[key: string]: unknown
|
||||
|
||||
Reference in New Issue
Block a user