Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 631 Bytes

File metadata and controls

29 lines (22 loc) · 631 Bytes
title Base
order 5

Base is a component that specifies the base URL for all relative URLs in the document. This provides a way to define the base element of your document's head.

import { Base } from "@solidjs/meta";

<Base target="_blank" href="https://docs.solidjs.com/" />;

Usage

Adding base tag

import { MetaProvider, Base } from "@solidjs/meta";

export default function Root() {
	return (
		<MetaProvider>
			<Base target="_blank" href="https://docs.solidjs.com/" />
		</MetaProvider>
	);
}