@spark-ui/components
Version:
Spark (Leboncoin design system) components.
1 lines • 618 B
Source Map (JSON)
{"version":3,"sources":["../../src/portal/Portal.tsx"],"sourcesContent":["import { Portal as RadixPortal } from 'radix-ui'\nimport { type PropsWithChildren, Ref } from 'react'\n\ninterface PortalProps {\n /**\n * An optional different container where the portaled content should be appended.\n */\n container?: HTMLElement | null\n ref?: Ref<HTMLDivElement>\n}\n\nexport const Portal = (props: PropsWithChildren<PortalProps>) => {\n return <RadixPortal.Portal {...props} />\n}\n"],"mappings":";AAAA,SAAS,UAAU,mBAAmB;AAY7B;AADF,IAAM,SAAS,CAAC,UAA0C;AAC/D,SAAO,oBAAC,YAAY,QAAZ,EAAoB,GAAG,OAAO;AACxC;","names":[]}