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

Export SymbolProps #2443

Closed
jamesarosen opened this issue Oct 5, 2023 · 0 comments · Fixed by #2462
Closed

Export SymbolProps #2443

jamesarosen opened this issue Oct 5, 2023 · 0 comments · Fixed by #2462

Comments

@jamesarosen
Copy link

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

I'd like to make a custom Legend symbolShape. The only way to type that at the moment is through the parameters on one of the exported symbol components:

import { type SymbolCircle } from '@nivo/legends';

type SymbolProps = Parameters<typeof SymbolCircle>[0];

const MyCustomSymbol: FC<SymbolProps> = ({ id, x }) => {
  return <>...</>;
}

Describe the solution you'd like

I'd like to be able to import SymbolProps directly, likely as

import { type SymbolProps } from '@nivo/legends';
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

Successfully merging a pull request may close this issue.

1 participant