import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
import { forwardRef } from 'react';
import styles from './headline.module.css.js';

const headline = cva(styles.headline, {
    variants: {
        size: {
            small: styles["headline-small"],
            medium: styles["headline-medium"],
            large: styles["headline-large"],
        },
        align: {
            left: styles["headline-align-left"],
            center: styles["headline-align-center"],
            right: styles["headline-align-right"],
        },
        truncate: {
            true: styles["headline-truncate"],
        }
    },
    defaultVariants: {
        size: "small",
        align: "left",
        truncate: false,
    },
});
const Headline = forwardRef(({ className, size, align, truncate, as: Component = "h2", children, ...props }, ref) => {
    return (jsxRuntimeExports.jsx(Component, { ref: ref, className: headline({ size, align, truncate, className }), ...props, children: children }));
});
Headline.displayName = "Headline";

export { Headline };
//# sourceMappingURL=headline.js.map
