Type alias UiPanelProps

UiPanelProps: {
    closeOnNoChildrenPress?: boolean;
    componentProps?: ViewProps;
    items: UiPanelItemProps[];
    onClose: (() => void);
    onCloseText?: string;
    open: boolean;
    style?: StyleProp<ViewStyle>;
}

Props for UiPanel component

Type declaration

  • Optional closeOnNoChildrenPress?: boolean

    Indicate if should close if pressing item with no children

  • Optional componentProps?: ViewProps

    Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this.

  • items: UiPanelItemProps[]

    List of top level items to render

  • onClose: (() => void)
      • (): void
      • Callback to close the panel

        Returns void

  • Optional onCloseText?: string

    Text to use for on close areas (accessibility). Defaults to ENGLISH "Close"

  • open: boolean

    Indicate if the panel should be open

  • Optional style?: StyleProp<ViewStyle>

    Custom style to set on the item

Generated using TypeDoc