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
Showing
28 changed files
with
1,642 additions
and
229 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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,7 @@ | ||
import { classAdderBuilder } from '@smui/common/internal.js'; | ||
import Div from '@smui/common/Div.svelte'; | ||
|
||
export default classAdderBuilder({ | ||
class: 'mdc-tooltip__content', | ||
component: Div, | ||
}); |
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,7 @@ | ||
import { classAdderBuilder } from '@smui/common/internal.js'; | ||
import A from '@smui/common/A.svelte'; | ||
|
||
export default classAdderBuilder({ | ||
class: 'mdc-tooltip__content-link', | ||
component: A, | ||
}); |
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,29 @@ | ||
# Svelte Material UI - Tooltip | ||
|
||
Tooltips display informative content when a user hovers over or interacts with an element. | ||
|
||
# Installation | ||
|
||
```sh | ||
npm install --save-dev @smui/tooltip | ||
``` | ||
|
||
# Demo | ||
|
||
[See it in action.](https://sveltematerialui.com/demo/tooltip) | ||
|
||
[See the demo code.](/site/src/routes/demo/tooltip/) | ||
|
||
# Basic Usage | ||
|
||
todo... | ||
|
||
# Exports | ||
|
||
todo... | ||
|
||
# More Information | ||
|
||
See [Tooltips](https://material.io/components/tooltips) in the Material design spec. | ||
|
||
See [Tooltip](https://github.com/material-components/material-components-web/tree/v10.0.0/packages/mdc-tooltip) in MDC-Web for information about the upstream library's architecture. |
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,10 @@ | ||
import { classAdderBuilder } from '@smui/common/internal.js'; | ||
import Div from '@smui/common/Div.svelte'; | ||
|
||
export default classAdderBuilder({ | ||
class: 'mdc-tooltip--rich-actions', | ||
component: Div, | ||
contexts: { | ||
'SMUI:button:context': 'tooltip:rich-actions', | ||
}, | ||
}); |
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,7 @@ | ||
import { classAdderBuilder } from '@smui/common/internal.js'; | ||
import H2 from '@smui/common/H2.svelte'; | ||
|
||
export default classAdderBuilder({ | ||
class: 'mdc-tooltip__title', | ||
component: H2, | ||
}); |
Oops, something went wrong.