ConciergeTrigger
Header button that toggles the ConciergeDrawer. Used in DesktopNavigation as a labelled "Ask Dex" pill grouped with the search input, and in MobileNavigation as an icon (beside search from the tab breakpoint; alone before the menu on narrow phones).
components/molecules/concierge/ConciergeTrigger.tsx
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
variant | 'label' | 'icon' | no | 'label' | label: "Ask Dex" pill with sparkle icon. icon: sparkle icon button |
className | string | no | — | Extra classes |
Notes
- Must render inside
ConciergeProvider(usesuseConcierge().toggleDrawer). - Hidden when
CONCIERGE_ENABLED=false(no provider, trigger, or drawer mounted). - Label variant uses
h-10to match the search pill height. - Label variant uses a CSS-only gradient border (
.ask-dex-triggerinstyles/globals.css): surface fill on the padding box, green → blue → amethyst stroke on the border box, soft glow viabox-shadow. Slow border-angle animation; disabled underprefers-reduced-motion. - Sparkle icon uses the same green → blue → amethyst gradient via a tiny
linearGradientdef (no custom SVG paths). - Tooltip advertises the ⌘I / Ctrl+I shortcut.