Skip to content

Commit

Permalink
fix: restore clickable element type
Browse files Browse the repository at this point in the history
  • Loading branch information
yue4u committed Dec 24, 2024
1 parent 3b922b7 commit f4b351e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/react/src/components/Clickable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ const Clickable = forwardRef(function Clickable<T extends React.ElementType>(
p: ClickableProps<T>
) => JSX.Element
export default Clickable

/**
* @deprecated
* remained for v3 compatibility and will be removed in the future
*/
export type ClickableElement = HTMLButtonElement & HTMLAnchorElement
1 change: 1 addition & 0 deletions packages/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export { default as Button, type ButtonProps } from './components/Button'
export {
default as Clickable,
type ClickableProps,
type ClickableElement,
} from './components/Clickable'
export {
default as IconButton,
Expand Down

0 comments on commit f4b351e

Please sign in to comment.