Skip to content

Commit 3000ceb

Browse files
authored
Update readme example - wildcard
1 parent a74b9ee commit 3000ceb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ _If you're using CSS Custom Properties you can step directly to step 3._
210210
// Add a CSS Custom Property
211211
'--theme-color'?: 'black' | 'white';
212212

213+
// Allow namespaced CSS Custom Properties
214+
[index: `--theme-${string}`]: any;
215+
216+
// Allow any CSS Custom Properties
217+
[index: `--${string}`]: any;
218+
213219
// ...or allow any other property
214220
[index: string]: any;
215221
}

0 commit comments

Comments
 (0)