This section covers how to author, compose, and type components in BarefootJS. For the "use client" directive and the server/client boundary, see Core Concepts.

#Pages

Topic Description
Component Authoring Server components, client components, and the compilation model
Props & Type Safety Typing props, defaults, and rest spreading
Children & Slots Children prop, the Slot component, and the asChild pattern
Context API Sharing state across compound components with createContext / useContext
Portals Rendering elements outside their parent DOM hierarchy