diff options
| author | Frank <[email protected]> | 2025-08-29 23:32:17 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-08-29 23:32:17 -0400 |
| commit | 37f284f9a97d3354143d64fc76c2eb9f7d9ccf9e (patch) | |
| tree | 053db9abcb2178c71b22ebeadd07f920750ef5d2 /cloud/web/src/ui/dialog.tsx | |
| parent | 0178eab29bda2f1b37a29543cd313ede48ad3977 (diff) | |
| download | opencode-37f284f9a97d3354143d64fc76c2eb9f7d9ccf9e.tar.gz opencode-37f284f9a97d3354143d64fc76c2eb9f7d9ccf9e.zip | |
wip: cloud
Diffstat (limited to 'cloud/web/src/ui/dialog.tsx')
| -rw-r--r-- | cloud/web/src/ui/dialog.tsx | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/cloud/web/src/ui/dialog.tsx b/cloud/web/src/ui/dialog.tsx deleted file mode 100644 index 101f23d2b..000000000 --- a/cloud/web/src/ui/dialog.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { Dialog as Kobalte } from "@kobalte/core/dialog" -import { ComponentProps, ParentProps } from "solid-js" - -export type Props = ParentProps<{ - size?: "sm" | "md" - transition?: boolean -}> & - ComponentProps<typeof Kobalte> - -export function Dialog(props: Props) { - return ( - <Kobalte {...props}> - <Kobalte.Portal> - <Kobalte.Overlay data-component="dialog-overlay" /> - <div data-component="dialog-center"> - <Kobalte.Content - data-transition={props.transition ? "" : undefined} - data-size={props.size} - data-slot="content" - > - {props.children} - </Kobalte.Content> - </div> - </Kobalte.Portal> - </Kobalte> - ) -} |
