DocsGitHub
Getting Started
  • Overview
  • Design Tokens
Components
  • Accordion
  • Alert
  • Announcement
  • Avatar
  • Badge
  • BigCalendar
  • Breadcrumb
  • Button
  • ButtonGroup
  • Calendar
  • Card
  • Checkbox
  • Chip
  • CloseButton
  • Combobox
  • CommandPalette
  • ContextMenu
  • Currency
  • DatePicker
  • DescriptionList
  • Drawer
  • DropdownMenu
  • EmptyState
  • Field
  • FileUpload
  • FormGrid
  • Hotkey
  • Icon
  • Input
  • Metric
  • Modal
  • MultiSelect
  • NumberInput
  • Pagination
  • Popover
  • ProgressBar
  • Radio
  • Rating
  • SegmentedControl
  • Select
  • SelectionCard
  • Sidebar
  • Skeleton
  • Slider
  • Spinner
  • Stepper
  • Switch
  • Table
  • Tabs
  • Textarea
  • Timeline
  • TimePicker
  • Toast
  • Tooltip
  • TransferList
  • TreeView
  • Wizard
Charts
  • Overview
  • Area Chart
  • Bar Chart
  • Donut Chart
  • Line Chart
  • Pie Chart
  • Stacked Bar Chart

Tooltip

A popup that displays information related to an element when it receives hover or focus.

Installation

tsx
import { Tooltip } from "madagent";

Default (Top)

This is a tooltip

Positions

Top tooltip
Bottom tooltip
Left tooltip
Right tooltip
PropTypeDefaultDescription
content*
ReactNode
-Tooltip content
position
"top""bottom""left""right"
"top"Position relative to the trigger
children*
ReactNode
-Trigger element

RTL Support

Components automatically adapt to right-to-left languages using CSS logical properties.

Preview

معلومات مفيدة

Usage

tsx
<div style={{ display: "flex", gap: 24, justifyContent: "center", padding: 40 }}>
  <Tooltip content="معلومات مفيدة" position="top">
    <Icon icon={CircleHelp} tabIndex={0} aria-label="معلومات" />
  </Tooltip>
</div>