import { html } from 'lit-html'
import { Meta } from '@storybook/web-components'
import './index'
/** Documentation and examples of `lukso-sanitize` component. It's used to show potentially dangerous content or HTML in safe way.
* One of the common use cases is using HTML tags in texts coming from translations.
*/
const meta: Meta = {
title: 'Design System/Components/lukso-sanitize',
component: 'lukso-sanitize',
argTypes: {
htmlContent: {
control: { type: 'text' },
},
},
args: {
htmlContent:
'This is sample text containing html tags like bold or link.',
},
parameters: {
controls: {
exclude: ['sanitize', 'html-content'],
},
},
}
export default meta
const Template = ({ htmlContent }) =>
html``
/** This is example if text containing HTML tags. */
export const Sanitize = Template.bind({})