Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

715 B
Raw Blame
import {
  Box as Box,
  HeadSlot as HeadSlot,
  HeadTitle as HeadTitle,
  HeadLink as HeadLink,
  HeadMeta as HeadMeta,
} from "../components";

const Component = () => {
  return (
    <Box className={`w-box`}>
      <HeadSlot>
        <HeadTitle>{"Title"}</HeadTitle>
        <HeadLink rel={"help"} href={"/help"} />
        <HeadMeta name={"keywords"} content={"SEO"} />
      </HeadSlot>
    </Box>
  );
};

export default {
  title: "Components/HeadSlot",
};

const Story = {
  render() {
    return (
      <>
        <style>
          {`
@layer presets {
  div.w-box {
    box-sizing: border-box
  }
}

      `}
        </style>
        <Component />
      </>
    );
  },
};

export { Story as HeadSlot };