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

[ComponentDocs] Show details for arguments that are using "spread" #47

Open
AleksandarDev opened this issue Sep 12, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@AleksandarDev
Copy link
Member

AleksandarDev commented Sep 12, 2023

Following type can be improved:

{ options, onClick, icon, ...rest }: DropdownButtonProps

Here we can show list of those instead of single argument and types for each argument.

{ options, onClick, icon, ...rest }: DropdownButtonProps
    options: Items[],
    onClick: (event: Event) => void,
    icon: ReactElement
    ...rest

We could read type info from @enterwell/<package>/index.d.ts if not present in @enterwell/<package>/api import.

@AleksandarDev AleksandarDev added the enhancement New feature or request label Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant