Skip to content

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

@AleksandarDev

Description

@AleksandarDev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions