Skip to main content

Channel - RTL

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

info

The Planby Layout is handling out of the box the rendering of the channels and detecting the RTL featured turned on.

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 = ({ channel }: IChannelItem) => {
const { position, logo } = channel;

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