mirror of
https://github.com/tabler/tabler.git
synced 2026-08-07 03:42:27 +04:00
8962710163
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
15 lines
328 B
Plaintext
15 lines
328 B
Plaintext
---
|
|
interface Props {
|
|
text?: string
|
|
position?: string
|
|
color?: string
|
|
class?: string
|
|
}
|
|
|
|
const { text = 'Label', position, color, class: className } = Astro.props
|
|
|
|
const classes = ['hr-text', position && `hr-text-${position.toLowerCase()}`, color && `text-${color}`, className]
|
|
---
|
|
|
|
<div class:list={classes}>{text}</div>
|