import { Meta } from '@storybook/blocks'; # SDK Hooks React hooks that provide functionality or state related to your Amazon Chime meeting. These hooks are aimed at making it easy to build out your own meeting UI. ## Getting Started Refer to the [primary introduction page](/docs/introduction--page) on how to get your app setup with a `MeetingProvider`, and for how to join a meeting. Once you have your `MeetingProvider` rendered and you've joined a meeting, you can use these hooks to build out your meeting UIs. ## Examples ### Building a custom mute button ```jsx import { useToggleLocalMute } from 'amazon-chime-sdk-component-library-react'; const MyMuteButton = () => { const { muted, toggleMute } = useToggleLocalMute(); return ( ); }; ``` ### Building a custom ContentShare component ```jsx import { useAudioVideo, useContentShareState } from 'amazon-chime-sdk-component-library-react'; const ContentShare () => => { const audioVideo = useAudioVideo(); const { tileId } = useContentShareState(); const videoEl = useRef(null); useEffect(() => { if (!audioVideo) { return; } audioVideo.bindVideoElement(tileId, videoEl.current); return () => audioVideo.unbindVideoElement(tileId); }, [audioVideo, tileId]); return (