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 👇

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

import styles from './Halftone.module.scss'

type HalftoneProps = {
  density?: 'sparse' | 'normal' | 'dense'
  height?: number
}

export function Halftone({
  density = 'normal',
  height = 24,
}: HalftoneProps): React.ReactElement {
  return (
    <div
      className={styles.halftone}
      data-density={density}
      style={{ blockSize: `${height}px` }}
      aria-hidden="true"
    />
  )
}