2
0
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:
Nikolay Kost
2024-07-12 03:35:51 +03:00
committed by GitHub
parent 1490bd6a8b
commit 16ad5216db
63 changed files with 2389 additions and 226 deletions
+2 -1
View File
@@ -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) => ({