-
-
Notifications
You must be signed in to change notification settings - Fork 164
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 props to allow other libraries to reference it #181
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit d4b11ed:
|
src/index.tsx
Outdated
@@ -12,7 +12,7 @@ import { | |||
} from './helpers' | |||
import cssStyles from './styles.css' | |||
|
|||
type Props = { | |||
export type EasyCropperProps = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the component is named Cropper, I would name this CropperProps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ValentinH Can do, but thought due to NPM name it would be best to relate to that i.e react-easy-crop
therefor EasyCropper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cropper is the name used in the docs so I'd use this :)
Thanks for this PR. It has been published under v3.2.1 🎉 |
@all-contributors please add @labithiotis for code |
I've put up a pull request to add @labithiotis! 🎉 |
Pretty simple PR to export props to allow them to be reference by other libraries.