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

Docs website should have a toggle to copy named import instead of default one #12

Open
ADTC opened this issue Nov 13, 2024 · 0 comments

Comments

@ADTC
Copy link

ADTC commented Nov 13, 2024

Is your feature request related to a problem? Please describe.

  1. Related to Better TypeScript support #1 because I use TS (and TS is awesome!).
  2. In the Docs Site (linked here), every time I search for an icon and I click on it, the style of import copied is the "default import".

Describe the solution you'd like

  1. Please add a toggle somewhere in the Docs site to change the copy function to copy the named import version instead.
  2. Alternatively or additionally, please add the ability to copy the other version by holding Shift key on the keyboard.
  3. Also it will be nice to be able to copy only the name by holding Command (macOS), Ctrl (Windows) or something.

Describe alternatives you've considered

  1. It's tedious to copy the default import then after pasting, manually adjust the code to convert it into a named import.
  2. I thought holding keys like Shift, Control and Command might change the copied import but it didn't do anything.

Additional context
I could open a PR for it, but I don't see the source code for docs site in any branch here.

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

No branches or pull requests

1 participant