mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 02:11:07 +08:00
10 lines
263 B
JavaScript
10 lines
263 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
// eslint-disable-next-line react/no-danger
|
|
export const Html = ({ content }) => <div dangerouslySetInnerHTML={{ __html: content }} />;
|
|
|
|
Html.propTypes = {
|
|
content: PropTypes.string.isRequired,
|
|
};
|