-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f6b104
commit 2d1e04f
Showing
4 changed files
with
138 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@einride/ui": minor | ||
--- | ||
|
||
Add maxInlineSize to <Tooltip> to make multiline possible with logical properties. |
65 changes: 65 additions & 0 deletions
65
packages/einride-ui/src/components/content/Tooltip/Tooltip.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import { | ||
Meta, | ||
Primary, | ||
Description, | ||
Source, | ||
Title, | ||
ArgTypes, | ||
Subtitle, | ||
Controls, | ||
Story, | ||
Canvas, | ||
Stories, | ||
Markdown, | ||
} from "@storybook/blocks" | ||
import * as TooltipStories from "./Tooltip.stories.tsx" | ||
|
||
<Meta of={TooltipStories} /> | ||
|
||
<Title /> | ||
|
||
<Description of={TooltipStories} /> | ||
|
||
```tsx | ||
import { Tooltip } from "@einride/ui" | ||
``` | ||
|
||
## Basic | ||
|
||
<Description of={TooltipStories.Basic} /> | ||
|
||
<Canvas of={TooltipStories.Basic} /> | ||
|
||
<Controls of={TooltipStories.Basic} /> | ||
|
||
## Button with tooltip | ||
|
||
<Description of={TooltipStories.ButtonTrigger} /> | ||
|
||
<Canvas of={TooltipStories.ButtonTrigger} /> | ||
|
||
<Controls of={TooltipStories.ButtonTrigger} /> | ||
|
||
## Open delay | ||
|
||
<Description of={TooltipStories.OpenDelay} /> | ||
|
||
<Canvas of={TooltipStories.OpenDelay} /> | ||
|
||
<Controls of={TooltipStories.OpenDelay} /> | ||
|
||
## Multiline | ||
|
||
<Description of={TooltipStories.Multiline} /> | ||
|
||
<Canvas of={TooltipStories.Multiline} /> | ||
|
||
<Controls of={TooltipStories.Multiline} /> | ||
|
||
## Tooltip alignment | ||
|
||
<Description of={TooltipStories.Align} /> | ||
|
||
<Canvas of={TooltipStories.Align} /> | ||
|
||
<Controls of={TooltipStories.Align} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters