mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-12 05:00:34 +08:00
Co-authored-by: dnlklmn <pelicansinberlin@gmail.com> Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
26 lines
544 B
Svelte
26 lines
544 B
Svelte
<script lang="ts">
|
|
export let ariaLabel: string | undefined = undefined;
|
|
export let outline: boolean = false;
|
|
</script>
|
|
|
|
<style>
|
|
.radio {
|
|
display: flex;
|
|
border-radius: var(--border-radius-tiny);
|
|
justify-content: center;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
}
|
|
.outline {
|
|
display: flex;
|
|
border: 1px solid var(--color-fill-secondary);
|
|
padding: 3px;
|
|
border-radius: var(--border-radius-small);
|
|
gap: 0.25rem;
|
|
}
|
|
</style>
|
|
|
|
<div aria-label={ariaLabel} class="radio" class:outline>
|
|
<slot />
|
|
</div>
|