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:
@@ -2,13 +2,12 @@
|
||||
interface Props {
|
||||
text?: string
|
||||
position?: string
|
||||
color?: string
|
||||
class?: string
|
||||
}
|
||||
|
||||
const { text = 'Label', position, color, class: className } = Astro.props
|
||||
const { text = 'Label', position, class: className } = Astro.props
|
||||
|
||||
const classes = ['hr-text', position && `hr-text-${position.toLowerCase()}`, color && `text-${color}`, className]
|
||||
const classes = ['hr-text', position && `hr-text-${position.toLowerCase()}`, className]
|
||||
---
|
||||
|
||||
<div class:list={classes}>{text}</div>
|
||||
|
||||
Reference in New Issue
Block a user