From c06fcd24b4d3b1bc16eb28b6139bc3e5936a8dd7 Mon Sep 17 00:00:00 2001 From: Nicolas Theodarus Date: Fri, 28 Apr 2023 14:37:52 +0200 Subject: [PATCH] edit markdown explanation --- docs/data/base/components/snackbar/snackbar.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/data/base/components/snackbar/snackbar.md b/docs/data/base/components/snackbar/snackbar.md index c1ec6b50390ec1..09b315abe060b5 100644 --- a/docs/data/base/components/snackbar/snackbar.md +++ b/docs/data/base/components/snackbar/snackbar.md @@ -60,12 +60,15 @@ The Snackbar component is composed of a single root `
` slot with no interio ### Custom structure -Use the `slots.root` prop to override the root slot with a custom element: - ```jsx ``` +:::info +The `slots` prop is available on all non-utility Base components. +See [Overriding component structure](/base/guides/overriding-component-structure/) for full details. +::: + #### Usage with TypeScript In TypeScript, you can specify the custom component type used in the `slots.root` as a generic to the unstyled component. This way, you can safely provide the custom component's props directly on the component: