diff --git a/README.md b/README.md index 8f8122ea..48a95c29 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +--- +layout: mainLayout +--- + # Flowbite Svelte Icons
@@ -51,10 +55,10 @@ In a svelte file: ```html - + ``` ## Faster compiling @@ -63,10 +67,10 @@ If you need only a few icons from this library in your Svelte app, import them d ```html - + ``` ## Props @@ -106,13 +110,13 @@ The following table provides details about the available sizes for icons: To change the size of an icon, use the `size` prop and specify the desired size. For example: ```html - + ``` If you want to override the preconfigured size, you can add a custom size using Tailwind CSS by including the desired classes in the `class` prop. For example: ```html - + ``` ## Setting Global Icon using setContext @@ -251,10 +255,10 @@ Here, we import the `MyIcon` component and the `AngleLeftSolid` icon. By passing You can apply Tailwind CSS color directly to the icon component or its parent tag using the `class` prop. ```html - +
- +
``` @@ -263,7 +267,7 @@ You can apply Tailwind CSS color directly to the icon component or its parent ta Use the color attribute to change colors with HEX color code for Filled and Outlined components. ```html - + ``` ## Dark mode @@ -273,7 +277,7 @@ If you are using the dark mode on your website with Tailwind CSS, add your dark Let's use `dark` for the dark mode class as an example. ```html - + ``` ## aria-label @@ -282,7 +286,7 @@ All icons have aria-label. For example `BxAbacus` has `aria-label="bx abacus"`. Use `ariaLabel` prop to modify the `aria-label` value. ```html - + ``` ## Unfocusable icon @@ -290,7 +294,7 @@ Use `ariaLabel` prop to modify the `aria-label` value. If you want to make an icon unfocusable, add `tabindex="-1"`. ```html - + ``` ## Events @@ -312,31 +316,31 @@ All icons have the following events: You can pass other attibutes as well. ```html - + ``` ## Using svelte:component ```html - + ``` ## Using onMount ```html ``` @@ -350,13 +354,13 @@ Use `import * as Icon from 'flowbite-svelte-icons`. import * as Icon from 'flowbite-svelte-icons'; - +

Size

- +

Tailwind CSS

- + ``` ## Other icons diff --git a/package.json b/package.json index 20e98aaf..13f3d39e 100644 --- a/package.json +++ b/package.json @@ -2249,4 +2249,4 @@ "svelte": "./dist/ZoomOutSolid.svelte" } } -} +} \ No newline at end of file diff --git a/src/routes/+page.md b/src/routes/+page.md index e3d4bd0f..48a95c29 100644 --- a/src/routes/+page.md +++ b/src/routes/+page.md @@ -55,10 +55,10 @@ In a svelte file: ```html - + ``` ## Faster compiling @@ -67,10 +67,10 @@ If you need only a few icons from this library in your Svelte app, import them d ```html - + ``` ## Props @@ -110,13 +110,13 @@ The following table provides details about the available sizes for icons: To change the size of an icon, use the `size` prop and specify the desired size. For example: ```html - + ``` If you want to override the preconfigured size, you can add a custom size using Tailwind CSS by including the desired classes in the `class` prop. For example: ```html - + ``` ## Setting Global Icon using setContext @@ -255,10 +255,10 @@ Here, we import the `MyIcon` component and the `AngleLeftSolid` icon. By passing You can apply Tailwind CSS color directly to the icon component or its parent tag using the `class` prop. ```html - +
- +
``` @@ -267,7 +267,7 @@ You can apply Tailwind CSS color directly to the icon component or its parent ta Use the color attribute to change colors with HEX color code for Filled and Outlined components. ```html - + ``` ## Dark mode @@ -277,7 +277,7 @@ If you are using the dark mode on your website with Tailwind CSS, add your dark Let's use `dark` for the dark mode class as an example. ```html - + ``` ## aria-label @@ -286,7 +286,7 @@ All icons have aria-label. For example `BxAbacus` has `aria-label="bx abacus"`. Use `ariaLabel` prop to modify the `aria-label` value. ```html - + ``` ## Unfocusable icon @@ -294,7 +294,7 @@ Use `ariaLabel` prop to modify the `aria-label` value. If you want to make an icon unfocusable, add `tabindex="-1"`. ```html - + ``` ## Events @@ -316,31 +316,31 @@ All icons have the following events: You can pass other attibutes as well. ```html - + ``` ## Using svelte:component ```html - + ``` ## Using onMount ```html ``` @@ -354,13 +354,13 @@ Use `import * as Icon from 'flowbite-svelte-icons`. import * as Icon from 'flowbite-svelte-icons'; - +

Size

- +

Tailwind CSS

- + ``` ## Other icons diff --git a/src/routes/utils/utils.js b/src/routes/utils/utils.js index d831bbe2..fa8e2298 100644 --- a/src/routes/utils/utils.js +++ b/src/routes/utils/utils.js @@ -2,7 +2,7 @@ export function filterIconsByKeyword(icons, keyword) { const filteredIcons = {}; for (const key in icons) { - if (key.includes(keyword)) { + if (key.includes(keyword) && !key.includes('IconOutline') && !key.includes('IconSolid')) { filteredIcons[key] = icons[key]; } }