--- interface Props { text: string /** hr-text-{position} (core/scss/ui/typo/_hr.scss); center is the default look */ position?: 'start' | 'center' | 'end' | undefined class?: string /** remaining attributes (id, data-*, aria-*, …) are forwarded to the root element */ [key: string]: unknown } const { text, position, class: className, ...rest } = Astro.props const classes = ['hr-text', position && `hr-text-${position.toLowerCase()}`, className] ---