--- import type { HTMLAttributes } from 'astro/types' import '../../dist/components/NavbarVertical/styles.css' /** * The React version takes `renderItem`/`renderAlert`/`renderActions` render * props; Astro has none, so the items go in the default slot and the other two * in named slots. */ export type Props = HTMLAttributes<'div'> const { class: className, ...rest } = Astro.props ---
{ Astro.slots.has('alert') && (
) }