diff options
| author | Adam <[email protected]> | 2025-10-16 14:53:44 -0500 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-10-16 14:53:44 -0500 |
| commit | 47d9e017657c4d265dea53bd86d727097a7ba282 (patch) | |
| tree | e278fb3983f13f6fa474228cf5031c3b4680f566 /packages/ui/src/app.tsx | |
| parent | fc18fc8a08e703a54553e714344e638673b2d313 (diff) | |
| download | opencode-47d9e017657c4d265dea53bd86d727097a7ba282.tar.gz opencode-47d9e017657c4d265dea53bd86d727097a7ba282.zip | |
wip: css/ui and desktop work
Diffstat (limited to 'packages/ui/src/app.tsx')
| -rw-r--r-- | packages/ui/src/app.tsx | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/packages/ui/src/app.tsx b/packages/ui/src/app.tsx index f42781543..6f3e388e9 100644 --- a/packages/ui/src/app.tsx +++ b/packages/ui/src/app.tsx @@ -1,6 +1,5 @@ import type { Component } from "solid-js" -import { Button, Select, Tabs } from "./components" -import "@opencode-ai/css" +import { Button, Select, Tabs, Tooltip, Fonts } from "./components" import "./index.css" const App: Component = () => { @@ -17,6 +16,9 @@ const App: Component = () => { <Button variant="ghost" size="normal"> Normal Ghost </Button> + <Button variant="secondary" size="normal" disabled> + Normal Disabled + </Button> <Button variant="primary" size="large"> Large Primary </Button> @@ -26,6 +28,9 @@ const App: Component = () => { <Button variant="ghost" size="large"> Large Ghost </Button> + <Button variant="secondary" size="large" disabled> + Large Disabled + </Button> </section> <h3>Select</h3> <section> @@ -88,14 +93,35 @@ const App: Component = () => { </Tabs.Content> </Tabs> </section> + <h3>Tooltips</h3> + <section> + <Tooltip value="This is a top tooltip" placement="top"> + <Button variant="secondary">Top Tooltip</Button> + </Tooltip> + <Tooltip value="This is a bottom tooltip" placement="bottom"> + <Button variant="secondary">Bottom Tooltip</Button> + </Tooltip> + <Tooltip value="This is a left tooltip" placement="left"> + <Button variant="secondary">Left Tooltip</Button> + </Tooltip> + <Tooltip value="This is a right tooltip" placement="right"> + <Button variant="secondary">Right Tooltip</Button> + </Tooltip> + <Tooltip value={() => `Dynamic tooltip: ${new Date().toLocaleTimeString()}`} placement="top"> + <Button variant="primary">Dynamic Tooltip</Button> + </Tooltip> + </section> </div> ) return ( - <main> - <Content /> - <Content dark /> - </main> + <> + <Fonts /> + <main> + <Content /> + <Content dark /> + </main> + </> ) } |
