"use strict";

import { forwardRef } from "react";
import { useIOTheme } from "../../context";
import { IOText } from "./IOText";

/* Common typographic styles */
import { jsx as _jsx } from "react/jsx-runtime";
export const h3FontSize = 22;
export const h3LineHeight = 33;

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