
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
evokit-text
Advanced tools
Used for text. Contains one element <Text>
npm install evokit-text --save
More about usage
import React from 'react';
import { Text } from 'evokit-text';
import 'evokit-text/style.css';
const App = () => (
<Text text-align='center'>
...
</Text>
);
Also supports other valid props of the React Element. More about use props
<Text />| Prop name | Default value | Possible value | Description |
|---|---|---|---|
| text-align | left | left center right justify | Horizontal alignment |
| text-color | null | Create theme | Text color |
| text-display | inline | block inline-block inline none | Display type |
| text-lheight | default | default medium large | Line spacing |
| text-size | default | none inherit default small big h1 h2 h3 h4 h5 h6 | Font size |
| text-style | null | italic strike underline overline | Text style |
| text-transform | none | none capitalize lowercase uppercase | Text case conversion |
| text-valign | null | baseline bottom middle sub super text-bottom text-top top | Vertical alignment |
| text-weight | default | default thin light medium bold black 100 200 300 400 500 600 700 800 900 | Font weight |
| text-wrap | normal | normal nowrap pre pre-wrap pre-line break ellipsis three-line two-line | Transferring and cutting text |
This set of css variables is default, if you want to override one or more value, please use the rules css-variable-usage, define them below the css import.
@custom-media --ek-text-media-small only screen and (min-width: 480px);
@custom-media --ek-text-media-medium only screen and (min-width: 768px);
@custom-media --ek-text-media-large only screen and (min-width: 960px);
@custom-media --ek-text-media-wide only screen and (min-width: 1200px);
@custom-media --ek-text-media-huge only screen and (min-width: 1400px);
:root {
/* base */
--ek-text-line-height: 1em;
/* prop 'text-size' */
--ek-text-size-small: 11px;
--ek-text-size-default: 13px;
--ek-text-size-big: 15px;
--ek-text-size-h1: 24px;
--ek-text-size-h2: 22px;
--ek-text-size-h3: 20px;
--ek-text-size-h4: 18px;
--ek-text-size-h5: 16px;
--ek-text-size-h6: 14px;
/* prop 'text-lheight' */
--ek-text-line-height-default: var(--ek-text-line-height);
--ek-text-line-height-medium: 1.25em;
--ek-text-line-height-large: 1.5em;
}
text-displayblock - shown as blockyinline-block - block element that is wrapped around by other elementsinline - displayed as inlinenone - remove from a document<Text text-display='none'>
...
</Text>
text-sizenone - value: 0pxinherit - inherits the meaning of the parentsmall - css variable --ek-text-size-small, default value: 11pxdefault - css variable --ek-text-size-default, default value: 13pxbig - css variable --ek-text-size-big, default value: 15pxh1 - css variable --ek-text-size-h1, default value: 24pxh2 - css variable --ek-text-size-h2, default value: 22pxh3 - css variable --ek-text-size-h3, default value: 20pxh4 - css variable --ek-text-size-h4, default value: 18pxh5 - css variable --ek-text-size-h5, default value: 16pxh6 - css variable --ek-text-size-h6, default value: 14px<Text text-size='big'>
...
</Text>
text-weightdefault - value: 400thin - value: 100light - value: 300medium - value: 500bold - value: 700black - value: 900or
100 200 300 400 500 600 700 800 900<Text text-weight='bold'>
...
</Text>
text-alignleft - Align text to the leftcenter - Center alignment of textright - Align text to the rightjustify - Distributes all text evenly across width<Text text-align='...'></Text>
text-valigntop - Align the top edge of the element to the top of the tallest line item.bottom - Aligns the base of the current element at the bottom of the element of the line below it allmiddle - The alignment of the midpoint of the element at the baseline of the parent plus half the height of the parent elementbaseline - Aligns the baseline of the current element to the parent's baselinesub - The element is depicted as subscript, in the form of a subscriptsuper - The element is depicted as superscript, in the form of a superscripttext-top - The top border of the element is aligned to the highest text element of the current linetext-bottom - The bottom border of the element is aligned at the very bottom edge of the current line<Text text-valign='baseline'>
...
</Text>
text-wrapnormal - The text is displayed as usualnowrap - All text is displayed in one linepre - Whitespace is preserved by the browser. Text will only wrap on line breaks. Acts like the <pre> tag in HTMLpre-wrap - Whitespace is preserved by the browser. Text will wrap when necessary, and on line breakspre-line - Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary, and on line breaksbreak - Line wrapping is added automaticallyellipsis - The text is cut and an ellipsis is added to the end of the linetwo-line - Text is cut in two linesthree-line - Text is cut in three lines<Text text-wrap='ellipsis'>
...
</Text>
text-styleitalic - Cursive textstrike - Creates strikethrough textunderline - Sets underlined textoverline - The line runs over the text<Text text-style='strike'>
...
</Text>
text-transformnone - Does not change the case of characterscapitalize - The first character of each word in the sentence will be capitalizedlowercase - All text characters are lowercase (lower case)uppercase - All text characters become uppercase (upper case)<Text text-transform='uppercase'>
...
</Text>
text-lheightdefault - css variable --ek-text-line-height-default, default value: 1emmedium - css variable --ek-text-line-height-medium, default value: 1.25emlarge - css variable --ek-text-line-height-large, default value: 1.5em<Text text-lheight='large'>
...
</Text>
text-colorSet the
THEME_NAMEdepending on the theming
<Text text-color={THEME_NAME}>
...
</Text>
FAQs
Used for text
The npm package evokit-text receives a total of 476 weekly downloads. As such, evokit-text popularity was classified as not popular.
We found that evokit-text demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.