@primer/react
Version:
An implementation of GitHub's Primer Design System using React
29 lines (28 loc) • 894 B
JavaScript
import Divider_module_css_default from "./Divider.module.css.js";
import { c } from "react-compiler-runtime";
import { jsx } from "react/jsx-runtime";
//#region src/deprecated/ActionList/Divider.tsx
/**
* Visually separates `Items or `Groups in an `ActionList`.
*/
function Divider() {
const $ = c(1);
let t0;
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
t0 = /*#__PURE__*/ jsx("div", {
"data-component": "ActionList.Divider",
className: Divider_module_css_default.Divider
});
$[0] = t0;
} else t0 = $[0];
return t0;
}
/**
* `Divider` fulfills the `ItemPropsWithCustomRenderer` contract,
* so it can be used inline in an `ActionList`’s `items` prop.
* In other words, `items={[ActionList.Divider]}` is supported as a concise
* alternative to `items={[{renderItem: () => <ActionList.Divider />}]}`.
*/
Divider.renderItem = Divider;
//#endregion
export { Divider };