Restructure shared Astro sources and import aliases (#2737)

This commit is contained in:
Paweł Kuna
2026-07-30 23:58:48 +02:00
committed by GitHub
parent 0f8dcb0a3c
commit ad2ed849dd
492 changed files with 1469 additions and 1714 deletions
+19
View File
@@ -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>