1.0.4 • Published 4 years ago

ts-react-toggle-panel v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

ts-react-toggle-panel

example-pic

Look and Feel

Abstract:

Here you will find a ReactJS component with which you can display your data in a togglable panel.

Features:

  • Design based on Material-UI
  • Properties to help you with an individual design
  • Functions as properties to help with the further use of the data
  • TypeScript implementation
  • ...

Installation

npm install --save ts-react-toggle-panel

Usage

import {
    TogglePanel
} from 'ts-react-toggle-panel';

...

<TogglePanel />

CSS

./node_modules/ts-react-toggle-panel/dist/index.css;

Properties

PropertyTypeRequiredDefaultInfo
allowTogglebooleanfalsetrue
childrenReact nodefalsechildren
contentHeightnumberfalse300
expandedbooleanfalsetrue
headerTitlestringfalseTsdev React Toggle Panelcan be used for translation
idstringfalseTsdevReactTogglePanel
onTogglefuncfalsenoopfirst argument is an object with keys: id (string), expanded (boolean)
showToggleIconbooleanfalsetrue
subClassstringfalse''