StdDlgButton

A button in a StdDlgButtonArea

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

Description

A button in a StdDlgButtonArea. Should only be a direct child of StdDlgButtonArea.

Parameters

NameTypeDescription
propsIStdDlgButtonProps

Example

<stdDlgButtonArea>
    <stdDlgButton text="OK" />
    <stdDlgButton text="Cancel" />
</stdDlgButtonArea>

Types

IStdDlgButtonProps

Properties for the StdDlgButton component.

Represents a single button in the dialog's button area. Buttons are displayed in listed order with size and layout controlled by the StandardDialog layout algorithm.

NameTypeDescription
disabled?booleanWhen true, the button has an inactive appearance and cannot receive focus.
textstringText displayed on the button.

Extends IGroupProps.


What’s Next

Did this page help you?