mirror of
https://github.com/tabler/tabler.git
synced 2026-08-30 13:51:28 +04:00
Restructure shared Astro sources and import aliases (#2737)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
---
|
||||
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>
|
||||
Reference in New Issue
Block a user