Module

x/fresh/src/runtime/Partial.tsx

The next-gen web framework.
Extremely Popular
Latest
File
import { ComponentChildren, VNode } from "preact";
export interface PartialProps { children?: ComponentChildren; /** * The name of the partial. This value must be unique across partials. */ name: string; /** * Define how the new HTML should be applied. * @default {"replace"} */ mode?: "replace" | "prepend" | "append";}
export function Partial(props: PartialProps): VNode { // deno-lint-ignore no-explicit-any return props.children as any;}Partial.displayName = "Partial";