feat: uniformize components sizes (#68)

This commit is contained in:
Benjamin Canac
2024-04-16 12:26:29 +02:00
committed by GitHub
parent 78e45600de
commit f302a15972
96 changed files with 1854 additions and 1720 deletions

View File

@@ -4,9 +4,10 @@ import ComponentRender from '../component-render'
describe('Container', () => {
it.each([
['basic case', {}],
// Props
['with as', { props: { as: 'article' } }],
['with class', { props: { class: 'max-w-5xl' } }],
// Slots
['with default slot', { slots: { default: () => 'Default slot' } }]
])('renders %s correctly', async (nameOrHtml: string, options: { props?: ContainerProps, slots?: any }) => {
const html = await ComponentRender(nameOrHtml, options, Container)