Skip to content

DashboardDimmer can dismiss

Latest
Compare
Choose a tag to compare
@hideokamoto hideokamoto released this 09 Jun 09:13
· 0 commits to master since this release

Can close Dimmer from the parent component.

import { DashboardDimmer } from 'dc-pattern-lib';

const T = () => {
  const [isOpen, updateState] = useState(true)

  setTimeout(() => {
    updateState(!isOpen)
  }, 1000);
  return <DashboardDimmer isOpen={isOpen} />
}