mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-17 19:21:20 +03:00
feat: react, vue3 and vanilla examples (#242)
* feat: react, vue3 and vanilla examples * fix: vue3 example * Create rare-worms-tease.md * fix: vue3 types * fix: vue3 ts checks * fix: vue3 render types * fix: vue3 component types
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import presetHTML5 from '@bbob/preset-html5';
|
||||
|
||||
import type { PresetTagsDefinition } from '@bbob/types';
|
||||
|
||||
const tagAttr = (style: Record<string, string>) => ({
|
||||
@@ -7,7 +8,7 @@ const tagAttr = (style: Record<string, string>) => ({
|
||||
},
|
||||
});
|
||||
|
||||
const presetReact = presetHTML5.extend((tags: PresetTagsDefinition<'b' | 'i' | 'u' | 's'>) => ({
|
||||
const presetReact = presetHTML5.extend<PresetTagsDefinition>((tags) => ({
|
||||
...tags,
|
||||
|
||||
b: (...args) => ({
|
||||
|
||||
Reference in New Issue
Block a user