Skip to content

Commit

Permalink
fix: README wrong example
Browse files Browse the repository at this point in the history
  • Loading branch information
cinaaaa committed Mar 31, 2023
1 parent c458818 commit 2c9e207
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
![React Tagify Promo Tweet](https://github.com/cinaaaa/react-tagify/blob/refactor/new/packages/site/src/assets/promo-tweet.png)
# React Tagify #️@🔥
# React Tagify #️@
Empower your React applications with effortless <span style="color: blue">#tag</span> and <span style="color: blue">@mention</span> support ❤️
<br />
<img src="https://img.shields.io/github/package-json/v/cinaaaa/react-tagify/master?color=green&label=Version&style=flat-square"/>
Expand Down Expand Up @@ -41,15 +41,11 @@ import { Tagify } from 'react-tagify';
```jsx
<Tagify
onClick={(text, type) => console.log(text, type)}
tagStyle={{ fontWeight: 'bold' }}
mentionStyle={{ fontStyle: 'italic' }}
detectHashtags
detectMentions
>
<p>
This is an example of a #hashtag and a @mention inside a Tagify component.
This is a #React component with help of #ReactTagify!
</p>
</ReactTagify>
</Tagify>
```

## Props
Expand Down
10 changes: 3 additions & 7 deletions packages/react-tagify/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
![React Tagify Promo Tweet](https://github.com/cinaaaa/react-tagify/blob/refactor/new/packages/site/src/assets/promo-tweet.png)
# React Tagify #️@🔥
# React Tagify #️@
Empower your React applications with effortless <span style="color: blue">#tag</span> and <span style="color: blue">@mention</span> support ❤️
<br />
<img src="https://img.shields.io/github/package-json/v/cinaaaa/react-tagify/master?color=green&label=Version&style=flat-square"/>
Expand Down Expand Up @@ -41,15 +41,11 @@ import { Tagify } from 'react-tagify';
```jsx
<Tagify
onClick={(text, type) => console.log(text, type)}
tagStyle={{ fontWeight: 'bold' }}
mentionStyle={{ fontStyle: 'italic' }}
detectHashtags
detectMentions
>
<p>
This is an example of a #hashtag and a @mention inside a Tagify component.
This is a #React component with help of #ReactTagify!
</p>
</ReactTagify>
</Tagify>
```

## Props
Expand Down
2 changes: 1 addition & 1 deletion packages/react-tagify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-tagify",
"version": "1.0.5",
"version": "1.0.6",
"description": "Empower your React applications with effortless #tag and @mention support",
"author": "Sina Farhadi",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/site/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function App() {

return (
<div className="App" style={{ textAlign: "left" }}>
<h1>React Tagify #️@🔥</h1>
<h1>React Tagify #️@</h1>
<Tagify
onClick={(text, type) =>
setText(
Expand Down

1 comment on commit 2c9e207

@vercel
Copy link

@vercel vercel bot commented on 2c9e207 Mar 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.