-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs-infra] Add a feature list "component" (#41484)
Co-authored-by: alexandre <alex.fauquette@gmail.com>
- Loading branch information
1 parent
4b591ff
commit 7d3b5a5
Showing
6 changed files
with
87 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import * as React from 'react'; | ||
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; | ||
import * as pageProps from './custom-components.md?muiMarkdown'; | ||
|
||
export default function Page() { | ||
return <MarkdownDocs {...pageProps} />; | ||
} |
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,19 @@ | ||
# Custom components | ||
|
||
<p class="description">They're either custom markdown components or passed through directly via "components".</p> | ||
|
||
## Header chips | ||
|
||
{{"component": "modules/components/ComponentLinkHeader.js"}} | ||
|
||
## Feature list | ||
|
||
Available through the custom `<featureList>` tag. | ||
|
||
<featureList> | ||
- Manages modal stacking when one-at-a-time just isn't enough. | ||
- Creates a backdrop, for disabling interaction below the modal.est | ||
- It disables scrolling of the page content while open. | ||
- It properly manages focus; moving to the modal content, and keeping it there until the modal is closed. | ||
- Adds the appropriate ARIA roles automatically. | ||
</featureList> |
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