Skip to content

Commit

Permalink
feat: add icon case for @iconify/tailwind (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
YogiLiu committed May 10, 2024
1 parent 6776577 commit 277894e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export const idCases = {
unocss(id: string) {
return `i-${id.replace(/:/g, '-')}`
},
iconifyTailwind(id: string) {
return `icon-[${id.replace(/:/g, '--')}]`
},
}

export type IdCase = keyof typeof idCases

0 comments on commit 277894e

Please sign in to comment.