From b2caec635ffefd0c11962397e5be55d5e43991a8 Mon Sep 17 00:00:00 2001 From: JamieS1211 <jamieshepherd1211@gmail.com> Date: Mon, 30 Dec 2019 09:51:34 +0000 Subject: [PATCH] [docs] Clarify not all components have 'component' prop (#19015) --- docs/src/pages/guides/typescript/typescript.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/pages/guides/typescript/typescript.md b/docs/src/pages/guides/typescript/typescript.md index 845e16248c7328..8edac70b49c397 100644 --- a/docs/src/pages/guides/typescript/typescript.md +++ b/docs/src/pages/guides/typescript/typescript.md @@ -265,7 +265,8 @@ const theme = createMyTheme({ appDrawer: { breakpoint: 'md' }}); ## Usage of `component` prop -Material-UI allows you to replace a component's root node via a `component` prop. +Many Material-UI components allow you to replace their root node via a `component` +prop, this will be detailed in the component's API documentation. For example, a Button's root node can be replaced with a React Router's Link, and any additional props that are passed to Button, such as `to`, will be spread to the Link component. For a code example concerning Button and react-router-dom checkout [these demos](/guides/composition/#routing-libraries).