utils/stripIconify
此内容尚不支持你的语言。
Functions
Section titled “Functions”stripIconify()
Section titled “stripIconify()”function stripIconify(params: { icons: string[]; src: IconifyJSON; }): IconifyJSON
Defined in: studiocms/packages/studiocms/src/utils/stripIconify.ts:11^
Strips an Iconify JSON object to only include specified icons.
Parameters
Section titled “Parameters”params
Section titled “params”An object containing the source Iconify JSON and an array of icon names to retain.
string
[]
An array of icon names to retain in the stripped Iconify JSON.
IconifyJSON
The original Iconify JSON object.
Returns
Section titled “Returns”IconifyJSON
A new Iconify JSON object containing only the specified icons.