Side Panel

Install

import {SidePanel} from '@xsolla/uikit';

Example

Usage

const Wrapper = ({isOpen, onClose, stepId, goBack}) => (
  <SidePanel
    isOpen={isOpen}
    onClose={onClose}
    stepId={stepId}
    goBack={goBack}
   />
);

API

PropertyDescriptionTypeDefault
isOpenside panel statusboolfalse
onCloseon close panel callbackFunction
stepIdflag for render screen by idnull, Stringnull
goBackcallback for handle stepIdFunction
titleoptional: title for headerReact.Nodenull
childrenchildren of side panel containerReact.Node