Skip to content

Commit

Permalink
Merge pull request #682 from pixiv/fix/restore-clickable-element-type
Browse files Browse the repository at this point in the history
fix: restore ClickableElement type
  • Loading branch information
yue4u authored Dec 25, 2024
2 parents 4ad18ea + f4b351e commit 55bb9c6
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 55bb9c6

Please sign in to comment.