Overview

HiC Showroom is open source. You can add your own HTML-in-Canvas component by opening a pull request on GitHub. Sharing your work is a great way to contribute to the community, get feedback, and inspire others.

Step 1: Fork & Clone

Fork the repository and clone it locally.

git clone https://github.com/YOUR-USERNAME/hic-showroom.git

Step 2: Create Your Component Folder

Add a new folder under components/ with your component's tag name (e.g. components/my-component/).

components/
├── my-component/
│   ├── index.js
│   ├── demo.html

Required files:

Optional files:

Step 3: Register in the Showroom

Add an entry for your component in showroom-data.js:

{
  id: 'my-component',
  name: 'My Component',
  author: 'Your Name',
}

Optional properties you can add to the showroom data entry:

{
  // a brief summary of your component to show in the gallery
  description: '...',
  // an array of customization options
  customization: [
    {
      // the name of the attribute users can add to customize the effect
      attribute: 'data-speed',
      // a brief description of what the attribute controls and how to use it
      description: '...',
      // the default value for the attribute if users don't provide one
      default: '10',
    },
    {
      // more customization attributes
    }
  ],
  // the markdown file in your component folder to render in the showroom
  markdown: 'file.md',
}

Step 4: Open a Pull Request

Push your branch and open a PR against the main repository. That's it!

Notes and Tips

Need Help?

If you run into any issues, have questions about the API, or just want to bounce ideas before submitting - feel free to reach out directly. I'm happy to help with anything from getting started to debugging tricky rendering issues. Don't hesitate.