@outfit.io/preact
v0.0.1
Published
This package is for Outfit templates written for ES Modules Preact.
Downloads
3
Keywords
Readme
@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();