@harispandzic46/wayup-components-text-arial
v1.0.3
Published
Text component for WayUp applications with Arial fonts instead of Proxima Nova
Downloads
5
Maintainers
Readme
WayUp Text Component (Arial)
A React text component for WayUp applications using Arial fonts instead of Proxima Nova.
Installation
npm install @harispandzic46/wayup-components-text-arialUsage
import { Text } from "@harispandzic46/wayup-components-text-arial";
<Text size="md" color="grayBlack" bold>
Hello World
</Text>;Props
children: ReactNode - The text contentsize: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' - Font sizecolor: string - Text color (supports predefined colors like 'grayBlack', 'white', etc.)bold: boolean - Make text boldfontStyle: 'normal' | 'italic' - Font styleelement: 'div' | 'span' | 'p' - HTML element to rendertextAlign: 'left' | 'right' | 'center' | 'justify' | 'initial' | 'inherit' - Text alignmentlineHeight: string - Line heighttextDecoration: string - Text decorationhoverTextDecoration: string - Text decoration on hovercursor: 'text' | 'pointer' | null - Cursor stylebackgroundColor: string - Background colorpadding: string - Paddingmargin: string - MargintextTransform: string - Text transformwhiteSpace: 'normal' | 'nowrap' | 'pre' | 'pre-line' | 'pre-wrap' | 'initial' | 'inherit' | null - White space handlingtextOverflow: 'clip' | 'hidden' | 'ellipsis' - Text overflow handlingoverflow: 'auto' | 'hidden' | 'scroll' | 'inherit' - Overflow handlingflexBasis: 'auto' | string - Flex basisfullWidth: boolean - Full widthoverflowWrap: 'normal' | 'break-word' | 'anywhere' - Overflow wrapverticalAlign: 'baseline' | 'sub' | 'super' | 'text-top' | 'text-bottom' | 'middle' | 'top' | 'bottom' - Vertical alignmentdisplay: string - Display propertyletterSpacing: string - Letter spacing
Development
npm install
npm run buildLicense
MIT
