UNPKG

@trail-ui/react

Version:
34 lines (32 loc) 762 B
// src/menu/menu-selected-icon.tsx import { jsx } from "react/jsx-runtime"; function MenuSelectedIcon(props) { const { isSelected, ...otherProps } = props; return /* @__PURE__ */ jsx( "svg", { "aria-hidden": "true", "data-selected": isSelected, role: "presentation", viewBox: "0 0 20 20", ...otherProps, children: /* @__PURE__ */ jsx( "polyline", { fill: "none", points: "1 9 7 14 15 4", stroke: "currentColor", strokeDasharray: 22, strokeDashoffset: isSelected ? 44 : 66, strokeWidth: 2, style: { transition: "stroke-dashoffset 200ms ease" } } ) } ); } export { MenuSelectedIcon };