A sample of how to share components with seedling.
- Create a new file in
/components
with the nameHero.ts
.
export default "https://raw.githubusercontent.com/use-seedling/seedling-component-masthead/master/index.html";
- Use with seedling component directive.
<:component use="Hero" />
or
<Hero />
Note - All remote components require the --allow-net
command line parameter for Deno.
Special Thanks
This component is a sample from the truely excellent Tailwind UI. We sprinked some Alpine.js for interactivity.
https://tailwindui.com/components/marketing/sections/heroes https://github.com/alpinejs/alpine/