--- // Mockup browser (.mockup-browser): a frame that looks like a browser window, // with the window dots and an address bar above the content in the slot. interface Props { /** text shown in the address bar; no address bar when omitted */ url?: string | undefined /** show a lock icon before the url */ secure?: boolean /** `.mockup-browser-sm`: a 24px toolbar for thumbnails and cards */ size?: 'sm' class?: string /** class of the `.mockup-browser-body` element */ bodyClass?: string | undefined /** remaining attributes (id, data-*, aria-*, …) are forwarded to the root element */ [key: string]: unknown } import Icon from './Icon.astro' const { url, secure, size, class: className, bodyClass, ...rest } = Astro.props ---
{ url && (
{secure && } {url}
) }