Skip to content

Registry

Editable source for the icons, branding and shared UI in my applications. Explore a working example and the files behind it.

Read the Registry case study →

Components

4 examples

Animated States

One SVG holds both drawings. A native button owns the pressed state, and the Registry motion styles handle the transition and reduced-motion preference.

Get the Code

These are the working integration and source files used here. Preserve their support imports when bringing them into another application.

import { useState } from 'react'import { IconSwap } from '@/features/icons/registry/core/motion'import { CopyIcon } from '@/features/icons/registry/rich/copy'import { CheckIcon } from '@/features/icons/registry/rich/check'export function StateExample() {  const [checked, setChecked] = useState(false)  return (    <button type="button" aria-pressed={checked} onClick={() => setChecked(value => !value)}>      <IconSwap from={CopyIcon} to={CheckIcon} transition="scale" pressed={checked} size={20} />      Toggle state    </button>  )}