Skip to content

Commit

Permalink
docs: added an instruction in regards to adding a style to mentions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdejesus authored Jul 16, 2024
1 parent a66acc2 commit 8a00349
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
* inline: true
*/
import Mentions from 'rc-mentions';
// Import the default styles
import './index.less';

const { Option } = Mentions;

Expand All @@ -65,6 +67,8 @@ var Demo = (
React.render(<Demo />, container);
```

**Note:** We use [index.less](https://github.com/react-component/mentions/blob/master/assets/index.less) for styling, you can convert them into css and properly reference them to the code above.

## API

### Mentions props
Expand Down

0 comments on commit 8a00349

Please sign in to comment.