Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇

497 B
Raw Blame
// ===================
// ©AngelaMos | 2026
// index.tsx
// ===================

import type { PropsWithChildren } from 'react'
import styles from './Pill.module.scss'

type PillProps = PropsWithChildren<{
  tone?: 'paper' | 'ink' | 'alarm' | 'signal'
  size?: 'sm' | 'md'
}>

export function Pill({
  children,
  tone = 'paper',
  size = 'sm',
}: PillProps): React.ReactElement {
  return (
    <span className={styles.pill} data-tone={tone} data-size={size}>
      {children}
    </span>
  )
}