Skip to content

Commit

Permalink
Fix outdated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Aug 20, 2024
1 parent ff4c661 commit b0b7920
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,21 @@
//! app.add_plugins(TooltipPlugin::default());
//! ```
//!
//! Spawn a UI node with a [`Tooltip`]:
//! Spawn a UI node with [`Interaction`](bevy_ui::Interaction) and [`Tooltip`] components:
//!
//! ```ignore
//! commands.spawn((
//! NodeBundle::default(),
//! Interaction::default(),
//! Tooltip::from_section("Hello, world!", TextStyle::default()),
//! Tooltip::cursor("Hello, world!"),
//! ));
//! ```
//!
//! # Advanced
//!
//! To customize tooltip behavior, see [`Tooltip`].
//! To customize the behavior and appearance of a tooltip, see [`Tooltip`].
//!
//! To set a custom primary tooltip, see [`TooltipPlugin`] and [`PrimaryTooltip`].
//! For fully custom per-entity tooltips, use [`TooltipContent::Custom`].
//! To replace the default primary tooltip, see [`TooltipPlugin`] and [`PrimaryTooltip`].

mod context;
mod placement;
Expand Down

0 comments on commit b0b7920

Please sign in to comment.