@aplus-frontend/ui
Version:
24 lines (23 loc) • 577 B
JavaScript
import { resetComponent as g } from "../../style/index.mjs";
import { genComponentStyleHook as h } from "../../utils/cssinjs/index.mjs";
const i = (o) => ({
[o.componentCls]: {
...g(o),
[`${o.componentCls}__keywords`]: {
color: o.highlightKeywordsColor,
background: o.highlightKeywordsBackground,
paddingInline: o.highlightKeywordsPadding
}
}
}), d = h(
"Highlight",
(o) => [i(o)],
{
highlightKeywordsColor: "#faad14",
highlightKeywordsBackground: "transparent",
highlightKeywordsPadding: 2
}
);
export {
d as default
};