Something went wrong. Try again.
doll.systems community website
Something went wrong. Try again.
123456789101112131415161718192021222324252627---import type { HTMLAttributes } from 'astro/types';import type { FeatureImage as Image } from '../lib/images';import FeatureImage from './FeatureImage.astro';type Props = HTMLAttributes<'article'> & { title: string; image?: Image; as?: 'article' | 'section';};const { title, image, as: Tag = 'article', class: className, ...attributes } = Astro.props;---
<Tag {...attributes} class:list={['reading-content', className]} data-reading-content> <slot name="meta" /> <h1 tabindex="-1"> {title} <span class="reading-cursor" aria-hidden="true"></span> </h1> {Astro.slots.has('body') && ( <div class="reading-body"> <FeatureImage image={image} /> <slot name="body" /> </div> )} <slot /></Tag>