Skip to content

Commit 2291b31

Browse files
fix: tooltip defaults (#99)
* fix: tooltip defaults * chore: update version
1 parent ce86ef4 commit 2291b31

File tree

177 files changed

+69829
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+69829
-4
lines changed

src/components/Tooltip/Tooltip.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// Tremor Tooltip [v0.0.2]
2-
3-
"use client"
1+
// Tremor Tooltip [v0.0.3]
42

53
import React from "react"
64
import * as TooltipPrimitives from "@radix-ui/react-tooltip"
@@ -37,7 +35,7 @@ const Tooltip = React.forwardRef<
3735
showArrow = true,
3836
side,
3937
sideOffset = 10,
40-
triggerAsChild = false,
38+
triggerAsChild = true,
4139
...props
4240
}: TooltipProps,
4341
forwardedRef,

src/components/Tooltip/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Tremor Tooltip Changelog
22

3+
## 0.0.3
4+
5+
### Changes
6+
7+
- Fix: Set triggerAsChild default to `true`
8+
39
## 0.0.2
410

511
### Changes

storybook-static/assets/Area-DJv05xvA.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook-static/assets/AreaChart-iRocy0Pi.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook-static/assets/Badge-CRZPK1pY.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook-static/assets/BarChart-qGzaN6dC.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook-static/assets/Button-BKBEGp9E.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook-static/assets/Calendar-Bs0M0WIi.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

storybook-static/assets/Card-CcWW2RSf.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)