You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This component is rendering text transformed by predefined, standard `transform` functions:
- **no-op**: the text is rendered as-is (_no operation_)
- **lower-case**: use the standard `toLowerCase()` string transformation for rendition.
- **upper-case**: use the standard `toUpperCase()` string transformation for rendition.
- **camel-case**: starts by making the first word lowercase. Then, it capitalizes the first letter of each word that follows. Then It removes the non-letter chars from the text.
- **pascal-case**: capitalizes the first letter of each word. Then It removes the non-letter chars from the text.
- **snake-case**: separates each word with an underscore character (`_`). The rendered result is lowercased.
- **kebab-case**: separates each word with a dash character (`-`). The rendered result is lowercased.
- **to-base64**: renders a valid UTF-16 string to it's Base64 encoded representation.
- **from-base64**: renders a valid Base64 string into it's UTF-16 decoded string representation.
- **camel-to-kebab**: renders a camel-cased string into it's kebab-case representation.
- **pascal-to-kebab**: renders a pascal-cased string into it's kebab-case representation.
Copy file name to clipboardExpand all lines: README.md
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# react-text-renderer-components
2
2
3
-
! MANAGE YOUR DATA, NOT THEIR STRING REPRESENTATION !
3
+
⚡ MANAGE YOUR DATA OBJECTS, NOT THEIR STRING REPRESENTATION ⚡
4
4
5
5
This is a zero-dependencies component library providing a set of (pure) text rendering utility components. Those components are accepting common and custom data/field types as input and are rendering their text representation _automatically_.
6
6
@@ -12,7 +12,14 @@ e.g. to render the text corresponding to a `DateOfBirth` field (Date type) withi
0 commit comments