Can not open sheet-modal in react code

I tried to use framework 7 react sheet-modal

<ListItem title="Settings" class="link sheet-open" href="#" data-sheet=".my-sheet"></ListItem>

here is my sheet-modal

  <div className="sheet-modal my-sheet">
    <div className="toolbar">
      <div className="toolbar-inner">
        <div className="left"></div>
        {/*<div className="right"><a className="link sheet-close" href="#">Done</a></div>*/}
    <div className="sheet-modal-inner">
      <div className="block">
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ac diam ac quam euismod porta vel a nunc. Quisque sodales scelerisque est, at porta justo cursus ac.</p>

I also tried class=“sheet-open” or className=“sheet-open” but didnt work.

Use sheetOpen attribute instead!

1 Like

Or use declarative way of setting opened prop on action sheet, or use API