A StimulusJS controller for content that needs a placeholder.
npm install stimulus-placeholdable 
This is a simple StimulusJS controller that shows and hides a placeholder based on the content within some container element.
This assumes that StimulusJS is already installed.
Add the stimulus-placeholdable module:
``bash`
$ yarn add stimulus-placeholdable
or
`bash`
$ npm install stimulus-placeholdable
First, register the controller with StimulusJS:
`Javascript
// application.js
import { Application } from 'stimulus';
import { Placeholdable } from 'stimulus-placeholdable';
const application = Application.start();
application.register('placeholdable', Placeholdable);
`
Next, you need to attach the controller to some set of elements that contains a container target to monitor, and a placeholder target to show when the container is empty.
` html``
There are no items in the list!
Bug reports and pull requests are welcome on GitHub at
This package is available as open source under the terms of the MIT License.