Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possibility to choose own icons for certain component #2668

Closed
glutjenkossink opened this issue Mar 23, 2022 · 2 comments
Closed

possibility to choose own icons for certain component #2668

glutjenkossink opened this issue Mar 23, 2022 · 2 comments

Comments

@glutjenkossink
Copy link

glutjenkossink commented Mar 23, 2022

This function solves the problem (这个功能解决的问题)

Being able to choose your own icon (library) for the design and be consistent with it.
At the moment the fluent icons are being used for example inputs such as

  • DatePicker
  • TimePicker
  • Password
  • Select
  • Number
  • ...Many others most likely

But if one wants to use Material or FontAwesome thats currently not possible.
This could be possible with slots perhabs?

Expected API (期望的 API)

<n-date-picker v-model:value="timestamp" type="date">
<template #icon>
{{ icon }}
</template>
</n-date-picker>
@izcream
Copy link
Contributor

izcream commented Mar 27, 2022

password input toggle already have custom icon slot in latest version(2.27.0)

custom icon slot for another component is on progress. Hope its finished soon🥹

@07akioni
Copy link
Collaborator

I think we can close the issue now. If you find there are still icons can't be customized, you can create an new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants