undefined

EdgeJS

Edge is a feature-packed template engine for Node.JS that AdonisJS utilizes out-of-the-box. It comes with support for conditionals, looping, partials, layouts, components, and so much more.

8 Series
94 Lessons
EdgeJS

Lessons

Video preview
Identifying Accordion Items
Video preview

Identifying Accordion Items

In this lesson, we'll add the ability to have more than one item on a given accordion by creating a new accordion item component.

Video preview
Starting Our Accordion
Video preview

Starting Our Accordion

In this lesson, we'll start our accordion component and gain an understanding of how to handle uniquely identifying components that may appear multiple times on a single page via the AlpineJS magic id utility.

Video preview
Self-Destruct & Dismissible Alerts
Video preview

Dismissible & Self Destructing Alerts

In this lesson, we'll focus on adding interactivity to our alerts by making them both conditionally dismissible and self-destructable.

Video preview
Inverse Style & Cascading Slots
Video preview

Inverse Alert Style & Cascading Slots

In this lesson, we'll add our alert's inverse styling by extending our base alert. We'll also see how to cascade slots passed into our inverse alert to our extended base alert.

Video preview
Adding Conditional Content
Video preview

Adding Conditional Icon, Headline, and Message Content

In this lesson, we'll make our alert's icon, headline, and message completely optional. We'll also allow our icon to be provided via slot and our headline and message via prop or slot.

Video preview
Adding Alert Variants
Video preview

Adding Alert Variants

In this lesson, we'll focus on adding a light, dark, blue, green, red, and yellow variant option to our base alert.

Video preview
Creating Our Base alert
Video preview

Creating Our Base Alert

In this lesson, we'll create our base alert to serve as our building block for our content, variant, and style options. We'll also fix a pseudo-selector issue.

Video preview
Button Inverse and Outline Styles
Video preview

Adding Button Inverse and Outline Styles

In this lesson, we'll add two new button style options, inverse and outline. Both styles will extend off the work we did with our base button to keep all functionality in one concise location

Video preview
Adding Button Variants
Video preview

Adding Button Variants

In this lesson, we'll add variant options for our base button. These will provide light and dark options as well as stateful coloring blue, green, red, and yellow.

Video preview
Adding Button Sizes
Video preview

Adding Button Size Options

In this lesson, we'll add four size options to our base button large, base, small, and extra small. These sizes will then automatically be available as we add our button variants and styles.

Video preview
Adding Interactivity to our Button
Video preview

Adding Interactivity to our Button

In this lesson, we'll add extendable interactivity to our button using AlpineJS. We'll also walk through a demonstration of how we can utilize event propagation in AlpineJS to our advantage.

Video preview
Base Button
Video preview

Creating Our Base Button

In this lesson, we'll create our base button component which al our other button styles will derive from. It'll be in charge of building our classes, adding interactivity, and more.

Video preview
Main Slot, Named Slots, and Slot Scope
Video preview

Main Slot, Named Slots, and Slot Scopes

In this lesson, we'll learn all about the main slot, how to define and use named slots, as well as passing state information from within our components to our slots using slot scopes.

Video preview
Serialize Props as Attributes
Video preview

Serializing Props as Element Attributes

In this lesson, we'll learn about EdgeJS' serialize only and serialize except utility methods, which allow us to directly serialize key-value pairs from our props as element attributes within our components.

Video preview
Component Props & Default State
Video preview

Component Props and Default State

In this lesson, we'll learn how about props and how props and state interact within EdgeJS Components. We'll also take a look at how we can default default state values for our components.

Video preview
EdgeJS and AlpineJS State
Video preview

Component State & Passing State from EdgeJS to ApineJS

In this lesson, we'll take a look at how we can define and manage state within EdgeJS Components. We'll also learn how we can pass single properties or full objects from EdgeJS to AlpineJS and our client-side scripts.

Video preview
A Look at Component Reactivity
Video preview

A Look At Component Reactivity

In this lesson, we'll take a look at how we'll approach reactivity within our EdgeJS components using AlpineJS. We'll also briefly discuss where the line between EdgeJS and AlpineJS is, in terms of our component state and reactivity.

Video preview
Dynamic Demo Routes
Video preview

Dynamic Demo Routes for Components

In this lesson, we'll set up a dynamic route, which will be used to serve demos of the various components we'll be building.

Showing 55 to 72 of 94 results