Props - Svelte Flag Icons v1

Prop #

Size #

To change the size of an icon, use the size prop and specify the desired size. For example:

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:

CSS framework #

You can apply CSS framework color and other attributes directly to the icon component or its parent tag using the class prop.

Tailwind CSS #

Bootstrap #

aria-label #

All icons have aria-label. For example Us has aria-label="us". Use ariaLabel prop to modify the aria-label value.

Events #

Use withEvents prop to use the following events:

Passing down other attributes #

Since all icons have ...$$restProps, you can pass other attibutes as well.