import { ReactNode } from "react"; import { BoldTypes, TextTypes } from "./types"; /** * Defines the props for the NvText component. * * @param bold Sets the value of `font-weight` CSS property to the element. * @param italic If `true`, sets `font-style: italic` CSS style to the element. * @param nomargin If `true`, sets `margin: 0` CSS style to the element. * @param tag The HTML element used for the root node. * @param type Applies predefined styles to the element. * @param children The content of the component. */ export interface NvTextProps { /** Sets value of font-weight CSS property to the element. */ bold?: BoldTypes; /** If true, sets font-style: italic CSS style to the element. */ italic?: boolean; /** If true, sets margin: 0 CSS style to the element. */ nomargin?: boolean; /** The HTML element used for the root node. */ tag?: string; /** Applies predefined styles to the element */ type?: TextTypes; /** The additional CSS class for the text element. */ className?: string; /** The content of the component. */ children: ReactNode; } /** * Functional component for rendering styled text elements. * * @param bold - The bold type of the text. * @param italic - A boolean indicating if the text should be italicized. * @param nomargin - A boolean indicating if the text should have no margin. * @param tag - The HTML tag to be used for the text element. * @param type - The type of text style. * @param children - The content to be displayed within the text element. * @returns JSX element representing the styled text. */ declare const NvText: ({ bold, italic, nomargin, tag, type, className, children, }: NvTextProps) => import("react/jsx-runtime").JSX.Element; export default NvText;