@outfit.io/preact

0.0.1 • Public • Published

@outfit.io/preact

This package is for Outfit templates written for ES Modules Preact.

Usage

Wrap your template in the OutfitProvider and pass window.payload to its templateProps prop.

Then when you want to access your template inputs, use the useOutfit hook to get account, team, user and template inputs.

const { account, team, user, inputs } = useOutfit();

Readme

Keywords

none

Package Sidebar

Install

npm i @outfit.io/preact

Weekly Downloads

0

Version

0.0.1

License

ISC

Unpacked Size

65 kB

Total Files

8

Last publish

Collaborators

  • samueljim
  • jamesrplee
  • outfit-npm
  • phillycheese
  • omnihound