PageComponent #
One component that the template of a page uses.
Fields #
namestring
Name of the tag in the page template, for example AcmeChart in
<AcmeChart />. It becomes the import binding of the page SFC, so it must
be a valid JavaScript identifier.
fromstring
Module whose default export is the component: a bare package specifier or an absolute file path. Vite resolves it from the page that imports it.
Full type signature
TypeScript
interface PageComponent {
name: string
from: string
}

Comments