diff --git a/examples/js/index.js b/examples/js/index.js index 9f96f68e..b4e063b4 100644 --- a/examples/js/index.js +++ b/examples/js/index.js @@ -142,7 +142,7 @@ const Presentation = () => ( This is a Heading - This is a FitText component + This is a FitText component <${Slide}> <${Heading}>This is a Heading - <${FitText}>This is a FitText component + <${FitText}>This is a <${CodeSpan}>FitText component <${FitText} color="secondary" style=${{ textTransform: 'uppercase', fontFamily: 'Comic Sans MS' diff --git a/examples/typescript/index.tsx b/examples/typescript/index.tsx index 00845eb4..15337ced 100644 --- a/examples/typescript/index.tsx +++ b/examples/typescript/index.tsx @@ -141,7 +141,7 @@ const Presentation = () => ( This is a Heading - This is a FitText component + This is a FitText component > = (props) => { +const FitText: FC< + PropsWithChildren> +> = (props) => { const containerRef = useRef(null); const textRef = useRef(null); const [scale, setScale] = useState(1);