Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

vermasachin/react-capitalize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Capitalize

React Capitalize converts the first letter of each word to uppercase.

Install

npm install react-capitalize

How to use

import React from 'react';
import ReactDOM from 'react-dom';
import Capitalize from 'react-capitalize';

function App() {
  return (
    <Capitalize lowerRest>
      hello world
    </Capitalize>
  );
}

ReactDOM.render(<App />, document.querySelector('#app'));
Output: Hello World

Options

lowerRest

Type: Boolean

Converts all but first characters to lowercase.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published