@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
24 lines (20 loc) • 874 B
JavaScript
"use client";
const require_create_component = require('../../core/components/create-component.cjs');
const require_link_style = require('./link.style.cjs');
//#region src/components/link/link.tsx
const { PropsContext: LinkPropsContext, usePropsContext: useLinkPropsContext, withContext } = require_create_component.createComponent("link", require_link_style.linkStyle);
/**
* `Link` is a component for creating hyperlinks to different web pages, locations within the same page, or other URLs.
*
* @see https://yamada-ui.com/docs/components/link
*/
const Link = withContext("a")(void 0, ({ external,...rest }) => ({
rel: external ? "noopener" : void 0,
target: external ? "_blank" : void 0,
...rest
}));
//#endregion
exports.Link = Link;
exports.LinkPropsContext = LinkPropsContext;
exports.useLinkPropsContext = useLinkPropsContext;
//# sourceMappingURL=link.cjs.map