/* Copyright (c) Uber Technologies, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ import * as React from "react"; import { StatefulTooltip } from "baseui/tooltip"; import { useStyletron } from "baseui"; import Link from "next/link"; const NestedTooltip: React.FC<{ name: string; nestedName: string }> = ({ name, nestedName, }) => { const [css, theme] = useStyletron(); return ( (

{nestedName} is a nested override of {name}. It means that {name} component is using another Base Web component{" "} {nestedName} as its sub-component.

Since {nestedName} has its own set of overrides, you have to target nested sub-component to change relevant styles. You can utilize this interactive playground and see the resulting code bellow.

Learn more about nested overrides.

)} returnFocus showArrow > nested
); }; export default NestedTooltip;