svg-use

Tools and bundler plugins, to ergonomically load SVG files via use[href]

MIT License

Downloads
1.8K
Stars
192

Bot releases are visible (Hide)

svg-use - @svg-use/[email protected] Latest Release

Published by github-actions[bot] about 2 months ago

Patch Changes

  • 3e7af4f: Fix reference to @svg-use/react types in client dts reference.
svg-use - @svg-use/[email protected]

Published by github-actions[bot] about 2 months ago

Patch Changes

  • efa4f32: Fix: ensure that the result of config.rewritePath gets passed down
    to the inner SVG.
svg-use - @svg-use/[email protected]

Published by github-actions[bot] about 2 months ago

Patch Changes

  • 757b946: Fix createThemedExternalSvg props to reference SVGAttributes
svg-use - @svg-use/[email protected]

Published by github-actions[bot] about 2 months ago

Patch Changes

svg-use - @svg-use/[email protected]

Published by github-actions[bot] about 2 months ago

Patch Changes

svg-use - @svg-use/[email protected]

Published by github-actions[bot] about 2 months ago

Patch Changes

  • 5f6340e: Make @svg-use/react a dependency of plugins.
  • Updated dependencies [5f6340e]
svg-use - @svg-use/[email protected]

Published by github-actions[bot] about 2 months ago

Minor Changes

  • 05fa11e: Breaking change: Props now extend SVGAttributes<SVGSVGElement>
    instead of HTMLAttributes<SVGSVGElement>. This should be more permissive
    in most practical SVG cases, but it might cause type errors with existing uses
    of ThemedExternalSvg.
svg-use - @svg-use/[email protected]

Published by github-actions[bot] about 2 months ago

Minor Changes

  • 0ea4fd9: Breaking: defaultThemeSubstitution now takes an option object, so
    its signature has changed to a factory:

    const options = {
    -  getThemeSubstitutions: defaultThemeSubstitution
    +  getThemeSubstitutions: defaultThemeSubstitution()
    }
    

    defaultThemeSubstitution now provides a monochromeCssVarFallback option,
    to allow passing currentColor as the var() fallback.

svg-use - @svg-use/[email protected]

Published by github-actions[bot] 2 months ago

Patch Changes

svg-use - @svg-use/[email protected]

Published by github-actions[bot] 2 months ago

Minor Changes

  • 4ccc16a: Introduce emitFile in AdvancedOptions, to support Vite wrappers.
svg-use - @svg-use/[email protected]

Published by github-actions[bot] 2 months ago

Minor Changes

  • 86c4f14: Breaking change: The default theme has changed.

    • Instead of separating fills and strokes, equal colors are substituted in the
      same way. This makes it easier to support monotone/duotone/tritone themes,
      and reduces the output size.
    • The CSS custom properties have changed, to --svg-use-color-*
  • 86c4f14: Introduce ?noTheme config query, in types, docs and examples.

  • 86c4f14: Export the default Component in bundler ambient type declarations.

Patch Changes

  • Updated dependencies [86c4f14]
  • Updated dependencies [86c4f14]
  • Updated dependencies [86c4f14]
  • Updated dependencies [86c4f14]
svg-use - @svg-use/[email protected]

Published by github-actions[bot] 2 months ago

Minor Changes

  • 86c4f14: Introduce ?noTheme config query, in types, docs and examples.

  • 86c4f14: Breaking change: The default theme has changed.

    • Instead of separating fills and strokes, equal colors are substituted in the
      same way. This makes it easier to support monotone/duotone/tritone themes,
      and reduces the output size.
    • The CSS custom properties have changed, to --svg-use-color-*
  • 86c4f14: Export the default Component in bundler ambient type declarations.

Patch Changes

  • Updated dependencies [86c4f14]
  • Updated dependencies [86c4f14]
  • Updated dependencies [86c4f14]
  • Updated dependencies [86c4f14]
svg-use - @svg-use/[email protected]

Published by github-actions[bot] 2 months ago

Minor Changes

  • 86c4f14: Breaking change: The default theme has been updated. ThemeProps now
    accept color/colorSecondary/colorTertiary, instead of separating fills and
    strokes.
  • 86c4f14: Export the default Component in bundler ambient type declarations.
svg-use - @svg-use/[email protected]

Published by github-actions[bot] 2 months ago

Minor Changes

  • 86c4f14: Export all publicly-visible types

  • 86c4f14: Breaking change: The default theme has changed.

    • Instead of separating fills and strokes, equal colors are substituted in the
      same way. This makes it easier to support monotone/duotone/tritone themes,
      and reduces the output size.
    • The CSS custom properties have changed, to --svg-use-color-*
svg-use - @svg-use/[email protected]

Published by github-actions[bot] 2 months ago

Minor Changes

  • 01467a7: Refactor @svg-use/core API, update plugins to use it.

Patch Changes

svg-use - @svg-use/[email protected]

Published by github-actions[bot] 2 months ago

Minor Changes

  • 01467a7: Refactor @svg-use/core API, update plugins to use it.

Patch Changes

svg-use - @svg-use/[email protected]

Published by github-actions[bot] 2 months ago

Minor Changes

  • 01467a7: Add configContext, to allow rewriting URLs and toggling runtime
    checks.
  • 01467a7: Rename ThemedSvg to ThemedExternalSvg, to align with the factory
    function
svg-use - @svg-use/[email protected]

Published by github-actions[bot] 2 months ago

Minor Changes

  • 01467a7: Refactor @svg-use/core API, update plugins to use it.