01
Overview
Activates the associated dropdown menu on click or keyboard interaction.
Usage
DropdownTrigger is a compose-only leaf of Dropdown. The idiomatic API is Dropdown.Trigger, reached through the parent namespace — see the dropdown README for the composed snippet. The leaf is also a named export of @lostgradient/cinder.
02
When to use
Use when
- Opening a dropdown-menu from a button styled to match cinder's form controls.
- Pairing with dropdown to expose a custom menu from a labelled affordance.
Avoid when
- Triggering a discrete action with no menu — use button instead.
03
Props
Name | Type | Default | Description |
|---|---|---|---|
caretVisible | boolean | true | Render the trailing disclosure caret. Defaults to true. |
children | snippet | ||
onclick | MouseEventHandler<T> | undefined | null | ||
style | text |