@adaptavant/eds-icons@1.17.1

Patch Changes​

  • c21522b: Icons, logos and symbols can now be passed as props from React Server Components, for example <Button iconStart={AddIcon}> in a Next.js App Router page. The @adaptavant/eds-icons/icons, /logos and /symbols entry points are now marked 'use client', so icon components cross the server/client boundary as client references instead of throwing "Functions cannot be passed directly to Client Components".
  • b6851f1: Icons, symbols and logos are now tree-shakable. Generated components no longer set displayName with a top-level assignment, which bundlers had to keep as a side effect. Importing a single icon now ships only that icon instead of all of them (about 95 KB gzip less for a page that uses one icon). React DevTools still shows each icon's name from its named render function, but Icon.displayName is now undefined.