Files
website/node_modules/@astrojs/starlight/components/EditLink.astro
2024-05-06 17:15:30 -04:00

28 lines
441 B
Plaintext

---
import Icon from '../user-components/Icon.astro';
import type { Props } from '../props';
const { editUrl, labels } = Astro.props;
---
{
editUrl && (
<a href={editUrl} class="sl-flex">
<Icon name="pencil" size="1.2em" />
{labels['page.editLink']}
</a>
)
}
<style>
a {
gap: 0.5rem;
align-items: center;
text-decoration: none;
color: var(--sl-color-gray-3);
}
a:hover {
color: var(--sl-color-white);
}
</style>