MNEE
v0.0.1

Components

DropdownToken

Stable

Pill-shaped dropdown trigger with secondary background. Displays a leading icon, title, subtitle, and trailing chevron. Toggle icon slots with hasLeadingIcon and hasTrailingIcon. Pairs with SelectList for dropdown behavior.

With icon & label

Convert in

Without leading icon

Without trailing icon

Usage

import { DropdownToken } from "@mnee-ui/ui"<DropdownToken  label="Token"  icon={<TokenIcon token={selected.symbol} />}  title={selected.name}  subtitle={selected.symbol}  isOpen={dropdownOpen}  onClick={() => setDropdownOpen(!dropdownOpen)}/>

Props

PropTypeDefaultDescription
labelstringSection label above the trigger (e.g. "Convert in")
hasLabelbooleantrueShow/hide the label
iconReact.ReactNodeCoins iconLeading icon content (e.g. TokenIcon). Falls back to a placeholder coins icon when omitted
hasLeadingIconbooleantrueShow/hide the leading icon slot
hasTrailingIconbooleantrueShow/hide the trailing chevron
titlestringPrimary text (14px medium)
subtitlestringSecondary text (14px medium, muted)
isOpenbooleanfalseRotates chevron 180° when open
classNamestringAdditional classes on wrapper div