UNPKG

react-elegant-ui

Version:

Elegant UI components, made by BEM best practices for react

16 lines (15 loc) 279 B
/** * Interface of togglable component * * Implement it if you need a switch of on/off state */ export interface IToggleable { /** * Opened state */ opened?: boolean; /** * Opened state setter */ setOpened?: (newState: boolean) => void; }