initial commit

This commit is contained in:
2026-06-17 22:37:47 +05:30
commit bc31b2508b
100 changed files with 18050 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
---
import { Icon } from 'astro-icon/components';
interface Props {
name: string;
size?: 'sm' | 'md' | 'lg';
class?: string;
filled?: boolean;
ariaLabel?: string;
}
const { name, size = 'md', class: className = '', filled = false, ariaLabel } = Astro.props;
const sizes: Record = {
sm: 'text-[18px]',
md: 'text-[20px]',
lg: 'text-[24px]',
};
const iconifyName = name.replace(/_/g, '-');
const cls =
`material-symbols-outlined ${sizes[size]} ${filled ? 'fill-1' : ''} ${className}`.trim();
---
<Icon
name={`material-symbols:${iconifyName}`}
class={cls}
aria-label={ariaLabel}
role={ariaLabel ? 'img' : 'presentation'}
/>