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