The BottomBar component provides a declarative React wrapper for the imperative Telegram Web Apps bottom bar SDK. It acts as a container for MainButton and SecondaryButton components. Instead of calling window.Telegram.WebApp.setBottomBarColor manually, you can control the bottom bar appearance using the bgColor prop.
import { BottomBar, MainButton, SecondaryButton } from '@twa-dev/sdk/react';
<BottomBar bgColor="#ff0000">
<MainButton text="Continue" onClick={() => alert('continue')} />
<SecondaryButton text="Cancel" position="bottom" onClick={() => alert('cancelled')} />
</BottomBar>