"use strict";

import { forwardRef } from "react";
import { useIOTheme } from "../../context";
import { IOText } from "./IOText";
import { jsx as _jsx } from "react/jsx-runtime";
export const h1FontSize = 28;
export const h1LineHeight = 42;

/**
 * `H1` typographic style
 */
export const H1 = /*#__PURE__*/forwardRef(({
  color: customColor,
  ...props
}, ref) => {
  const theme = useIOTheme();
  const H1Props = {
    ...props,
    dynamicTypeRamp: "largeTitle",
    // iOS only
    weight: "Semibold",
    size: h1FontSize,
    lineHeight: h1LineHeight,
    color: customColor ?? theme["textHeading-default"]
  };
  return /*#__PURE__*/_jsx(IOText, {
    ref: ref,
    ...H1Props,
    children: props.children
  });
});
//# sourceMappingURL=H1.js.map