UNPKG

@vitus-labs/elements

Version:
30 lines 955 B
import { type ReactNode } from 'react'; import type { HTMLTextTags } from '@vitus-labs/core'; import type { VLForwardedComponent, ExtendCss } from "../types"; export type Props = Partial<{ /** * Label can be used instead of children for inline syntax. But **children** prop takes a precedence */ label: ReactNode; /** * Children to be rendered within **Text** component. */ children: ReactNode; /** * Defines whether should behave as a block text element. Automatically adds **p** HTML tag */ paragraph: boolean; /** * Defines what kind of HTML tag should be rendered */ tag: HTMLTextTags; /** * If an additional styling needs to be added, it can be do so via injecting styles using this property. */ css: ExtendCss; }>; declare const Component: VLForwardedComponent<Props> & { isText?: true; }; export default Component; //# sourceMappingURL=component.d.ts.map