Initial commit of Astro version
This commit is contained in:
commit
e3d1f6999b
79 changed files with 9880 additions and 0 deletions
16
src/components/icons/SVGIcon.astro
Normal file
16
src/components/icons/SVGIcon.astro
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
type Props = {
|
||||
width: string;
|
||||
height: string;
|
||||
viewBox: string;
|
||||
class?: string;
|
||||
fill?: string;
|
||||
children: any;
|
||||
};
|
||||
|
||||
const { width, height, class: className, fill = "currentColor", viewBox } = Astro.props;
|
||||
---
|
||||
|
||||
<svg style={{ width, height, fill }} class={className} viewBox={viewBox} aria-hidden>
|
||||
<slot />
|
||||
</svg>
|
||||
Loading…
Add table
Add a link
Reference in a new issue