@os-design/core
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -7,9 +7,14 @@ import { BaseProps } from '@os-design/styled'; | ||
* The link of the destination. | ||
* Can be used with the Next.js Link component by passing passHref prop. | ||
* @default undefined | ||
*/ | ||
href?: string; | ||
/** | ||
* Sets the handler to handle the click event. | ||
* @default undefined | ||
*/ | ||
onClick?: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void; | ||
} | ||
/** | ||
* The link component to navigate between pages. | ||
* Can be used with the Next.js Link component. | ||
*/ | ||
@@ -16,0 +21,0 @@ declare const Link: React.FC<LinkProps>; |
@@ -46,5 +46,6 @@ "use strict"; | ||
* The link component to navigate between pages. | ||
* Can be used with the Next.js Link component. | ||
*/ | ||
const Link = props => (react_1.default.createElement(StyledLink, { href: props.href, sizing: props.sizing, darkMode: props.darkMode, className: props.className }, props.children)); | ||
const Link = props => (react_1.default.createElement(StyledLink, { href: props.href, onClick: props.onClick, sizing: props.sizing, darkMode: props.darkMode, className: props.className }, props.children)); | ||
exports.default = Link; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@os-design/core", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"license": "MIT", | ||
@@ -31,3 +31,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "51f5b97d4984295138fe5c5d32b0e25a1be8ca5a" | ||
"gitHead": "ca769db8f9a08361402ad1a689ae1d7fad0b76d3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
54838
955