Migrate AddNewLines to Storybook
This commit is contained in:
parent
25ab4df9cc
commit
2cd187abaf
3 changed files with 58 additions and 36 deletions
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
|
||||
import { RenderTextCallbackType } from '../../types/Util';
|
||||
|
||||
interface Props {
|
||||
export interface Props {
|
||||
text: string;
|
||||
/** Allows you to customize now non-newlines are rendered. Simplest is just a <span>. */
|
||||
renderNonNewLine?: RenderTextCallbackType;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue