aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/SocialIcons.astro
diff options
context:
space:
mode:
authorNikhil M Warrier <nikhilmw.dev@gmail.com>2026-03-15 19:46:31 +0530
committerNikhil M Warrier <nikhilmw.dev@gmail.com>2026-03-15 19:46:31 +0530
commit5c77301da822b57cd14e8ea6dd40477f4179a8a8 (patch)
tree09a15b462e1164994f622b66282c270a71c6ac8d /src/components/SocialIcons.astro
parent7ddd723e299c3331412785c3631ff19b40093e67 (diff)
Fix icon orientation
Diffstat (limited to 'src/components/SocialIcons.astro')
-rw-r--r--src/components/SocialIcons.astro6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/SocialIcons.astro b/src/components/SocialIcons.astro
index ef843d6..5f573fc 100644
--- a/src/components/SocialIcons.astro
+++ b/src/components/SocialIcons.astro
@@ -2,17 +2,19 @@
import Link from '@/components/Link.astro'
import { buttonVariants } from '@/components/ui/button'
import { ICON_MAP } from '@/consts'
+import { cn } from '@/lib/utils'
import type { SocialLink } from '@/types'
import { Icon } from 'astro-icon/components'
interface Props {
links: SocialLink[]
+ class?: string
}
-const { links } = Astro.props
+const { links, class: classNames } = Astro.props
---
-<ul class="flex flex-col flex-wrap gap-2" role="list">
+<ul class={cn('flex flex-wrap gap-2', classNames)} role="list">
{
links.map(({ href, label }) => (
<li>