Components
Compose

Compose

Composes immediate child with its props and child own props. Used to implement Shoreline composition

function Button({ asChild, ...props }) {
  const Composition = asChild ? Compose : "button";
  return <Composition {...props} />;
}

Optional props

children

Children to compose

type
React.ReactNode
default
null