Something went wrong. Try again.
Local-first knowledge base made for Typst and the Atmosphere. typbase.at
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243<script setup lang="ts">import type { MaterialSymbol } from "material-symbols";
withDefaults( defineProps<{ name: MaterialSymbol; /** Icon size in px at the default interface size. The chrome scale multiplies it. */ size?: number; /** Solid fill instead of the outlined style. */ fill?: boolean; /** Variable-font weight, 100-700. */ weight?: number; }>(), { size: 16, fill: false, weight: 400, },);</script>
<template> <span class="ms-icon material-symbols-rounded" :style="{ 'font-size': `calc(${size}px * var(--ui-size, 1))`, 'font-variation-settings': `'FILL' ${fill ? 1 : 0}, 'wght' ${weight}`, }" aria-hidden="true" > {{ name.replaceAll("-", "_") }} </span></template>
<style>.ms-icon { width: 1em; height: 1em; vertical-align: -0.125em; user-select: none;}</style>