Skip to main content

Channel - Vertical Mode

Below is an example that allows you to render your custom Channel component using Planby's style components with Vertical mode.

Available props

PropertyTypeDescriptionStatus
isVerticalModebooleanVertical modeoptional
channelobjectObject contains position styles and url for logooptional
import {
useEpg,
Epg,
Layout,
ChannelBox,
ChannelLogo,
Channel,
ChannelItem,
} from "@nessprim/planby-pro";

const CustomChannelItem = ({ isVerticalMode, channel }: ChannelItem) => {
const { position, logo } = channel;

return (
<ChannelBox
data-testid="sidebar-item"
isVerticalMode={isVerticalMode}
{...position}
>
<ChannelLogo src={logo} alt="Logo" />
</ChannelBox>
);
};