Initial commit
This commit is contained in:
27
node_modules/@radix-ui/react-arrow/dist/index.mjs
generated
vendored
Normal file
27
node_modules/@radix-ui/react-arrow/dist/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
// packages/react/arrow/src/arrow.tsx
|
||||
import * as React from "react";
|
||||
import { Primitive } from "@radix-ui/react-primitive";
|
||||
import { jsx } from "react/jsx-runtime";
|
||||
var NAME = "Arrow";
|
||||
var Arrow = React.forwardRef((props, forwardedRef) => {
|
||||
const { children, width = 10, height = 5, ...arrowProps } = props;
|
||||
return /* @__PURE__ */ jsx(
|
||||
Primitive.svg,
|
||||
{
|
||||
...arrowProps,
|
||||
ref: forwardedRef,
|
||||
width,
|
||||
height,
|
||||
viewBox: "0 0 30 10",
|
||||
preserveAspectRatio: "none",
|
||||
children: props.asChild ? children : /* @__PURE__ */ jsx("polygon", { points: "0,0 30,0 15,10" })
|
||||
}
|
||||
);
|
||||
});
|
||||
Arrow.displayName = NAME;
|
||||
var Root = Arrow;
|
||||
export {
|
||||
Arrow,
|
||||
Root
|
||||
};
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
Reference in New Issue
Block a user