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:
@@ -5,12 +5,15 @@ interface Photo {
|
||||
title?: string
|
||||
}
|
||||
|
||||
/** core/scss/_variables.scss `$aspect-ratios` map keys */
|
||||
type PhotoRatio = '1x1' | '2x1' | '1x2' | '3x1' | '1x3' | '4x1' | '1x4' | '4x3' | '3x4' | '16x9' | '9x16' | '21x9' | '9x21'
|
||||
|
||||
interface Props {
|
||||
photo: Photo
|
||||
/** background param — plain <div> with only the background-image (no ratio class) */
|
||||
background?: boolean
|
||||
/** ratio param — img-responsive img-responsive-{ratio} wrapper */
|
||||
ratio?: string
|
||||
ratio?: PhotoRatio | undefined
|
||||
class?: string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user