Mark up
Component có này dạng HTML đầu vào, hiển thị ở sidebar để hướng dẫn user thực hiện tác vụ nào đó.
Ví dụ
import { Markup } from '~/components/mark-up';
export default function MarkupDemo() {
const htmlContent = '<p>This is some <b>HTML</b> content.</p>';
return (
<div style={{ height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
<Markup html={htmlContent} />
</div>
);
}
Props
Name | Type | Default | Description |
---|---|---|---|
html | string | - | html dạng string |