# Function Tooltip

A tooltip that appears on hover or keyboard focus of its child trigger.

Powered by Radix UI under the hood, so accessibility (ARIA, focus, escape, group delay) is handled. The content is portalled to `document.body`, so it escapes stacking contexts and renders above modals/drawers.

Requires a `<TooltipProvider>` somewhere up the tree.

#### Example

    <TooltipProvider>
        <Tooltip content="Save changes" side="bottom">
            <Button>Save</Button>
        </Tooltip>
    </TooltipProvider>

- Tooltip(props: TooltipProps & RefAttributes<HTMLDivElement>): ReactNode

- #### Parameters

  - props: TooltipProps & RefAttributes<HTMLDivElement>

  #### Returns ReactNode

  - Defined in src/components/ui/tooltip/Tooltip.tsx:137

#####
Index

### Properties

$$typeof
defaultProps?
displayName?
propTypes?

##
Properties

### `Readonly`$$typeof

$$typeof: symbol

- Defined in node_modules/.pnpm/@types+react@18.3.28/node_modules/@types/react/index.d.ts:644

### `Optional` defaultProps

defaultProps?: Partial<TooltipProps & RefAttributes<HTMLDivElement>>

#### Deprecated

Use values for destructuring assignments instead.

- Defined in node_modules/.pnpm/@types+react@18.3.28/node_modules/@types/react/index.d.ts:1582

### `Optional` displayName

displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

#### See

Legacy React Docs

- Defined in node_modules/.pnpm/@types+react@18.3.28/node_modules/@types/react/index.d.ts:660

### `Optional` propTypes

propTypes?: WeakValidationMap<TooltipProps & RefAttributes<HTMLDivElement>>

- Defined in node_modules/.pnpm/@types+react@18.3.28/node_modules/@types/react/index.d.ts:1583