@atlaskit/spotlight
Version:
A spotlight introduces users to points of interest, from focused messages to multi-step tours.
37 lines • 1.29 kB
JavaScript
/* index.tsx generated by @compiled/babel-plugin v3.0.2 */
import "./index.compiled.css";
import * as React from 'react';
import { ax, ix } from "@compiled/react/runtime";
import { forwardRef } from 'react';
import { Anchor, Text } from '@atlaskit/primitives/compiled';
const styles = {
root: "_2rko12b0 _4bfu1r31 _1hmsglyw _ajmmnqa1 _18zr12x7 _1rjcv77o _vchhusvi _1e0c1txw _4cvr1h6o _syaz15cr _bfhk1aqn _9oik1r31 _1bnxglyw _jf4cnqa1 _irr31ibz _1nrm1r31 _c2waglyw _1iohnqa1 _1di6of27"
};
/**
* __Spotlight secondary link__
*
* `SpotlightSecondaryLink` is a link-styled secondary control that mirrors the appearance of `SpotlightSecondaryAction`.
* Use it when the secondary control should navigate to a URL instead of performing an action (e.g. "Learn more", "View docs").
*
*/
export const SpotlightSecondaryLink = /*#__PURE__*/forwardRef(({
'aria-label': ariaLabel,
onClick,
children,
testId,
href,
target,
rel
}, ref) => /*#__PURE__*/React.createElement(Anchor, {
"aria-label": ariaLabel,
ref: ref,
testId: testId,
xcss: styles.root,
href: href,
target: target,
rel: rel,
onClick: onClick ? (e, _analyticsEvent) => onClick(e) : undefined,
componentName: "SpotlightSecondaryLink"
}, /*#__PURE__*/React.createElement(Text, {
as: "span"
}, children)));