Skip to content

Allow users to modify the default attributes #2884

Open
@honeymaro

Description

@honeymaro

Package

  • lucide
  • lucide-angular
  • lucide-flutter
  • lucide-preact
  • lucide-react
  • lucide-react-native
  • lucide-solid
  • lucide-svelte
  • lucide-vue
  • lucide-vue-next
  • Figma plugin
  • all JS packages
  • site

Description

Hi,
First of all, thank you for creating and maintaining this awesome library!

I’d like to request a feature that allows users to modify the default attributes. Currently, these attributes are fixed, and users who need customization have to manually override them for each icon instance. Providing a way to globally modify the default attributes would improve flexibility and ease of use.

Use cases

// Just an example
setDefaultAttributes({
  width: 16,
  height: 16,
  ...andMore,
})

This feature would be useful in scenarios where a project requires a consistent styling adjustment across all icons without modifying each instance separately.

Let me know if this is something that could be considered. I’d be happy to discuss or help contribute if needed!

Thanks again for your work! 🚀

Checklist

  • I have searched the existing issues to make sure this bug has not already been reported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions