@billogram/foundation-toggle-panel

A React toggle panel

Usage no npm install needed!

<script type="module">
  import billogramFoundationTogglePanel from 'https://cdn.skypack.dev/@billogram/foundation-toggle-panel';
</script>

README

@billogram/foundation-toggle-panel

A React toggle panel

Install

yarn add @billogram/foundation-toggle-panel

Usage

import {
    FoundationTogglePanel,
} from '@billogram/foundation-toggle-panel';

See types for exported types.

FoundationTogglePanel

<FoundationTogglePanel
    canEdit={ true }
    description={ null }
    title={ null }>
    { ({ close, isEditing, open }) => isEditing ? (
        <div>...</div>
    ) : (
        <div>...</div>
    ) }
</FoundationTogglePanel>

Note

This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. We probably won't take your feature requests unless they align with our own needs.

License

MIT