Skip to content

Commit

Permalink
[docs] Fix references
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Sep 2, 2023
1 parent 29d9ebc commit ddffda5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/data/toolpad/reference/components/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ The Text component lets you display text. Text can be rendered in multiple forms
| <span class="prop-name">mode</span> | <span class="prop-type">string</span> | <span class="prop-default">"text"</span> | Defines how the content is rendered. Either as plain text, markdown, or as a link. |
| <span class="prop-name">value</span> | <span class="prop-type">string</span> | <span class="prop-default">"text"</span> | The text content. |
| <span class="prop-name">href</span> | <span class="prop-type">string</span> | <span class="prop-default">"about:blank"</span> | The url that is being linked. |
| <span class="prop-name">variant</span> | <span class="prop-type">string</span> | <span class="prop-default">"body1"</span> | The MUI typography [variant](https://mui.com/material-ui/customization/typography/#variants) that is used to display the text. |
| <span class="prop-name">variant</span> | <span class="prop-type">string</span> | <span class="prop-default">"body1"</span> | The Material UI typography [variant](https://mui.com/material-ui/customization/typography/#variants) that is used to display the text. |
| <span class="prop-name">loading</span> | <span class="prop-type">boolean</span> | <span class="prop-default">false</span> | Displays a loading animation instead of the text. Can be used when the content is not available yet. |
| <span class="prop-name">sx</span> | <span class="prop-type">object</span> | | The [`sx` prop](https://mui.com/system/getting-started/the-sx-prop/) is used for defining custom styles that have access to the theme. All MUI System properties are available via the `sx` prop. In addition, the `sx` prop allows you to specify any other CSS rules you may need. |
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ export default function ComponentPanel({ className }: ComponentPanelProps) {
</TabPanel>
<TabPanel value="theme" className={classes.panel}>
<Typography className={classes.themesDocsLink} variant="body2">
Customize the app with a MUI theme. Read more about theming in the{' '}
<Link href="https://mui.com/toolpad/concepts/theming" target="_blank" rel="noopener">
Customize the app with a Material UI theme. Read more about theming in the{' '}
<Link href="https://mui.com/toolpad/concepts/theming/" target="_blank" rel="noopener">
docs
</Link>
.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function PageOptionsPanel() {
<Typography variant="inherit">
Control how the navigation panel is rendered in the final application. Read more in the{' '}
<Link
href="https://mui.com/toolpad/concepts/display-mode"
href="https://mui.com/toolpad/concepts/display-mode/"
target="_blank"
rel="noopener"
>
Expand Down
2 changes: 1 addition & 1 deletion packages/toolpad-components/src/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export default createBuiltin(Text, {
},
variant: {
helperText:
'The MUI typography [variant](https://mui.com/material-ui/customization/typography/#variants) that is used to display the text.',
'The Material UI typography [variant](https://mui.com/material-ui/customization/typography/#variants) that is used to display the text.',
type: 'string',
enum: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2'],
default: 'body1',
Expand Down

0 comments on commit ddffda5

Please sign in to comment.