mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 13:21:29 +04:00
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
18 lines
299 B
Plaintext
18 lines
299 B
Plaintext
---
|
|
import Icon from './Icon.astro'
|
|
|
|
interface Props {
|
|
text?: string
|
|
top?: boolean
|
|
color?: string
|
|
}
|
|
|
|
const { text, top, color } = Astro.props
|
|
|
|
const classes = ['ribbon', top && 'ribbon-top', color && `bg-${color}`]
|
|
---
|
|
|
|
<div class:list={classes}>
|
|
{text ? text : <Icon name="star" />}
|
|
</div>
|