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

feat: added custom square renderer #60

Merged
merged 4 commits into from
Feb 20, 2023
Merged

feat: added custom square renderer #60

merged 4 commits into from
Feb 20, 2023

Conversation

leedavidcs
Copy link
Contributor

@leedavidcs leedavidcs commented Feb 17, 2023

Resolves

#59

Changelog

  • Added a new prop called customSquare which can either be a FC<CustomSquareProps>, or a string of an intrinsic element. children, ref and style should be passed down to the outer-most ReactElement if a functional component is provided.
    interface CustomSquareProps {
      children: ReactNode;
      ref: RefObject<HTMLElement>;
      square: Square;
      squareColor: "white" | "black";
      style: CSSProperties;
    }

@vercel
Copy link

vercel bot commented Feb 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
react-chessboard ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 19, 2023 at 8:31AM (UTC)

@Clariity Clariity merged commit a7d3ae5 into Clariity:main Feb 20, 2023
@Clariity Clariity mentioned this pull request Feb 20, 2023
@leedavidcs leedavidcs deleted the feat/custom-square-renderer branch February 21, 2023 03:26
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 this pull request may close these issues.

None yet

2 participants