@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
25 lines (23 loc) • 763 B
JavaScript
import { cs } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import { Icon } from "../icon/icon.js";
import { useListContext } from "./context.js";
import { jsx } from "react/jsx-runtime";
//#region src/list/listIcon.tsx
/** Displays an icon on the side of the ListItem. */
const ListIcon = vui((props, ref) => {
const { className, ...rest } = props;
const styles = useStyleConfig("List", useListContext());
return /* @__PURE__ */ jsx(Icon, {
className: cs("vui-listIcon", className),
ref,
...styles.icon,
...rest
});
});
ListIcon.displayName = "ListIcon";
//#endregion
export { ListIcon, ListIcon as default };
globalThis.__vuiVersion__ = "5.3.1"
//# sourceMappingURL=listIcon.js.map