Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support NextLink and other custom link components
Added support for using custom link components (e.g., NextLink) in the Button component via the new hrefComponent prop. If hrefComponent is not specified, it defaults to <a>. Details: - Introduced a new prop hrefComponent in ButtonProps. - If hrefComponent is provided, it will render the specified component for links instead of <a>. - Maintains backward compatibility by defaulting to <a> when hrefComponent is not set. - Ensures flexibility for projects using custom routing libraries like Next.js. Signed-off-by: Nikita Kononenko <[email protected]>
- Loading branch information