Skip to content

Commit af58d40

Browse files
authored
feat(react-ui): replace Icon zerodevLogo with a dedicated ZeroDevLogo component (#302)
1 parent 34c8e56 commit af58d40

18 files changed

Lines changed: 383 additions & 68 deletions

File tree

apps/zerodev-signer-demo/src/app/components/AppHeader.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import { Icon } from "@zerodev/react-ui";
3+
import { ZeroDevLogo } from "@zerodev/react-ui";
44
import { ArrowRight, ChevronDown, ExternalLink, Github } from "lucide-react";
55
import Link from "next/link";
66
import { useState } from "react";
@@ -20,7 +20,11 @@ export function AppHeader() {
2020
<div className="mx-auto flex w-full max-w-[1920px] flex-col gap-3 px-4 py-3 sm:px-6 lg:h-[88px] lg:flex-row lg:items-center lg:justify-between lg:px-9 lg:py-0">
2121
<div className="flex items-center justify-between gap-3">
2222
<Link href="/" className="flex w-fit items-center gap-2.5 sm:gap-3">
23-
<Icon name="zerodevLogo" className="h-7 w-auto shrink-0 sm:h-9" />
23+
<ZeroDevLogo
24+
variant="lockup"
25+
tone="black"
26+
className="h-7 w-auto shrink-0 sm:h-9"
27+
/>
2428
<div className="flex min-w-0 items-baseline gap-2 sm:gap-3">
2529
<span className="text-[10px] font-bold uppercase tracking-[0.22em] text-[#9c958c] sm:text-xs">
2630
Wallet Demo
-14.7 KB
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Loading

apps/zerodev-signer-demo/src/app/wagmi-config.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import { Icon } from '@zerodev/react-ui'
3+
import { ZeroDevLogo } from '@zerodev/react-ui'
44
import { type WalletMode } from '@zerodev/wallet-react'
55
import { zeroDevWallet } from '@zerodev/wallet-react-ui'
66
import { createConfig, http } from 'wagmi'
@@ -45,7 +45,7 @@ export const config = createConfig({
4545
}),
4646
...(mode && { mode }),
4747
config: {
48-
logo: <Icon name="zerodevLogo" className="zd:h-8 zd:w-auto" />,
48+
logo: <ZeroDevLogo variant="mark" tone="color" className="zd:h-8 zd:w-auto" />,
4949
auth: {
5050
enabledMethods: ['email', 'google', 'passkey'],
5151
emailAuthMethod: getEmailAuthMethod(),

packages/react-ui/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ function Example() {
5252
| `Button` | Labeled call-to-action with `primary` / `secondary` actions and optional leading/trailing icon. |
5353
| `IconButton` | Square icon-only button. |
5454
| `Icon` | SVG icon renderer; resolves icons by name from the bundled icon set. |
55+
| `ZeroDevLogo` | ZeroDev brand logo. `variant` `mark` (icon) or `lockup` (icon + wordmark); `tone` `black` / `offwhite` / `color` / `orange` (`lockup` supports only `black` / `offwhite`). |
5556
| `Input` | Text / multiline input with `default` / `ghost` / `listItemStyle` variants. |
5657
| `Switch` | On/off toggle (`role="switch"`). |
5758
| `Badge` | Pill label with optional leading/trailing icons. |
Lines changed: 20 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)