mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
feat: navbar account
This commit is contained in:
1 parent
85491c7f22
commit
829df50eca
7 files changed
+120
-87
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { Button, Popover } from '@radix-ui/themes';
|
||||
import { Button, Flex, Popover, Text } from '@radix-ui/themes';
|
||||
import { BlitzKitTheme } from '../components/BlitzKitTheme';
|
||||
|
||||
export function TestComponent() {
|
||||
return (
|
||||
@@ -7,7 +8,14 @@ export function TestComponent() {
|
||||
<Button>Radix UI</Button>
|
||||
</Popover.Trigger>
|
||||
|
||||
<Popover.Content>Content</Popover.Content>
|
||||
<BlitzKitTheme>
|
||||
<Popover.Content>
|
||||
<Flex direction="column">
|
||||
<Text>I should be in a dark mode popover</Text>
|
||||
<Button>And I should be yellow and have full border radius!</Button>
|
||||
</Flex>
|
||||
</Popover.Content>
|
||||
</BlitzKitTheme>
|
||||
</Popover.Root>
|
||||
);
|
||||
}
|
||||
@@ -1,11 +1,16 @@
|
||||
---
|
||||
import { Theme } from '@radix-ui/themes';
|
||||
import '@radix-ui/themes/styles.css';
|
||||
import { BlitzKitTheme } from '../components/BlitzKitTheme';
|
||||
import { TestComponent } from './TestComponent';
|
||||
---
|
||||
|
||||
Minimal!
|
||||
<style is:global>
|
||||
@import '@radix-ui/themes/styles.css';
|
||||
</style>
|
||||
|
||||
<Theme>
|
||||
<TestComponent client:only="react" />
|
||||
</Theme>
|
||||
<html>
|
||||
<body>
|
||||
<BlitzKitTheme>
|
||||
<TestComponent client:idle />
|
||||
</BlitzKitTheme>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user