Skip to content

Render prop for color picker component #538

@nickofthyme

Description

@nickofthyme

Is your feature request related to a problem? Please describe.
Allow color picker render prop

Describe the solution you'd like
Allow renderColorPicker prop to pass value.

interface Props {
  onChange: (color: string) => void;
}
type renderColorPicker = (props: Props) => React.Component;

Describe alternatives you've considered
Build our own color picker. For consistency and desire not to import EUI into elastic charts, the above option is preferable.

Additional Context
The logic to store colors in memory is still available in the legend so this would require handling the handshake between these two things.

Related to old issue #23

Metadata

Metadata

Assignees

No one assigned

    Labels

    :legendLegend related issueenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions