Migrate AddNewLines to Storybook

This commit is contained in:
Chris Svenningsen 2020-08-20 11:23:09 -07:00 committed by Josh Perez
parent 25ab4df9cc
commit 2cd187abaf
3 changed files with 58 additions and 36 deletions

View file

@ -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;