Overhang

The Overhang node provides an information bar that is displayed at the top of a screen in many Roku apps

import { Overhang } from "@roku-sdk/components";
Overhang(props: IOverhangProps): JSX.Element

Description

The Overhang node provides an information bar that is displayed at the top of a screen in many Roku apps. The regions occupied by the overhang can be filled with either a solid color or a bitmap.

The overhang typically includes a logo, title, clock, and options indicator, all of which can be customized or hidden as needed.

Parameters

NameTypeDescription
propsIOverhangProps

Example

<overhang
    title="My Channel"
    logoUri="pkg:/images/logo.png"
    showClock={true}
    showOptions={true}
    optionsAvailable={true}
/>

Types

IOverhangProps

Properties for the Overhang node.

The Overhang node provides an information bar that is displayed at the top of a screen in many Roku apps. The regions occupied by the overhang can be filled with either a solid color or a bitmap.

Example

<Overhang
    title="My Channel"
    logoUri="pkg:/images/logo.png"
    showClock={true}
    showOptions={true}
    optionsAvailable={true}
/>
NameTypeDescription
backgroundUri?UriSpecifies the URI of a bitmap to be used to fill the overhang area. If both color and backgroundUri are set, the last one set is used.
clockColor?stringSpecifies the color of the clock text.
clockText?stringSpecifies an alternate string to be displayed in the location of the clock. If set to a non-empty string, the specified string is displayed in place of the clock. If set to an empty string, the clock is restored.
color?stringFills the overhang area with the specified color. If both color and backgroundUri are set, the last one set is used.
height?numberSpecifies the height of the Overhang region.
leftDividerUri?UriSpecifies the URI of a bitmap to be used as a divider between the logo and the title.
leftDividerVertOffset?numberSpecifies the vertical offset of the left divider position.
logoBaselineOffset?numberSpecifies an adjustment to the vertical position of the logo to allow alignment of the logo relative to the baseline of the options prompt.
logoUri?UriSpecifies the URI of a bitmap to be drawn on the left side of the overhang area. If both logoUri and title are set, the logo will appear to the left of the title, with an optional divider bitmap between them.
optionsAvailable?booleanSpecifies whether or not the Options remote key is currently available. When true and showOptions is also true, the options prompt is displayed.
optionsColor?stringSpecifies the color of the options indicator when options are available.
optionsDimColor?stringSpecifies the color of the options indicator when options are not available.
optionsIconColor?stringSpecifies the tint color to be applied to the options icon when options are available.
optionsIconDimColor?stringSpecifies the tint color to be applied to the options icon when options are not available.
optionsMaxWidth?numberSpecifies the maximum width to which the optionsText text will be ellipsized. A value of 0.0 indicates no width restriction.
optionsText?stringSpecifies the text to be displayed next to the Options (*) symbol.
rightDividerUri?UriSpecifies the URI of a bitmap to be used as a divider between the clock and options prompt.
rightDividerVertOffset?numberSpecifies the vertical offset of the right divider position.
showClock?booleanControls whether or not a clock is displayed on the right side of the overhang. The default value is based on the device clock format setting.
showOptions?booleanControls whether or not the options prompt is displayed on the right side of the overhang. Note that optionsAvailable must also be set to true for the options prompt to be displayed.
title?stringSpecifies a text string to be displayed on the left side of the overhang area, to the right of the logo if logoUri is also specified.
titleColor?stringSpecifies the color of the title text.

Extends IGroupProps.


What’s Next

Did this page help you?