# TooltipTrigger

Lower-level component that wraps a trigger element and a `Tooltip`. Use when you need full control over tooltip content and positioning.

## When to Use

- Adding tooltips to buttons, icons, or any focusable element
- Providing additional context on hover
- When you need custom tooltip content or layout

## Properties

- **`placement`** `Placement` (default: `'top'`) — Tooltip position relative to trigger
- **`offset`** `number` (default: `8`) — Distance from trigger in pixels
- **`crossOffset`** `number` (default: `0`) — Cross-axis offset in pixels
- **`delay`** `number` (default: `250`) — Show delay in milliseconds
- **`closeDelay`** `number` (default: `500`) — Close delay in milliseconds
- **`isMaterial`** `boolean` — Material design style tooltip
- **`isLight`** `boolean` — Light theme tooltip
- **`isDisabled`** `boolean` — Disable the tooltip
- **`isOpen`** `boolean` — Controlled open state
- **`defaultOpen`** `boolean` — Initially open (uncontrolled)
- **`onOpenChange`** `(isOpen: boolean) => void` — Callback when open state changes
- **`trigger`** `'focus'` — When set, opens the tooltip only on focus instead of both focus and hover
- **`shouldCloseOnPress`** `boolean` (default: `true`) — Whether the tooltip closes when the trigger is pressed

### Base Properties

Supports [Base properties](../../BaseProperties.md).

### Style Properties

These properties allow direct style application without using the `styles` prop:

- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
- **Color:** `color`, `fill`, `fade`, `image`
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`

## Examples

```jsx
<TooltipTrigger>
  <Button iconOnly>
    <Icon icon={IconDeviceFloppy} />
  </Button>
  <Tooltip>Save document</Tooltip>
</TooltipTrigger>

<TooltipTrigger placement="bottom">
  <Button>More</Button>
  <Tooltip>Additional options</Tooltip>
</TooltipTrigger>
```
