SenUI Logo

Icons drawn at the size they will live.

SenIcon renders a single SVG file from /public via next/image. Three fixed sizes — 16, 24, 32 — keep the iconography crisp without inviting freelance scaling.

check
close
info
warning
search

Same shape, three sizes, no fluid scaling.

The library set, every size.

Each row is one icon at 16, 24, and 32 — pick the size that suits the surrounding density.

check

/icons/check.svg

16
24
32

close

/icons/close.svg

16
24
32

info

/icons/info.svg

16
24
32

warning

/icons/warning.svg

16
24
32

search

/icons/search.svg

16
24
32

github

/icons/github.svg

16
24
32

portfolio

/icons/portfolio.svg

16
24
32

Three sizes only

Pixel-perfect renders at 16, 24, 32. No fluid sizing, no surprises.

SVGs from /public

Drop SVG files into /public/icons. Reference by path. No icon font, no sprite.

Auto invert in dark mode

Tailwind dark:invert flips solid icons so they read on either ground.

Drop-in usage

An icon button — the most common shape, with proper aria-label.

import { SenIcon } from 'sen-ui'

export function CloseButton() {
  return (
    <button aria-label="Close" className="rounded-full p-2 hover:bg-gray-100">
      <SenIcon src="/icons/close.svg" size={24} />
    </button>
  )
}

Standalone implementation

'use client'

import Image from 'next/image'
import type { ComponentPropsWithoutRef } from 'react'

export interface SenIconProps extends ComponentPropsWithoutRef<'span'> {
  src: string
  size?: 16 | 24 | 32
}

export function SenIcon({ src, size = 24, className, ...props }: SenIconProps) {
  return (
    <span
      className={['inline-flex items-center justify-center', className]
        .filter(Boolean)
        .join(' ')}
      style={{ width: size, height: size }}
      {...props}
    >
      <Image
        src={src}
        alt=""
        width={size}
        height={size}
        className="object-contain invert-0 filter dark:invert"
      />
    </span>
  )
}