Props - Svelte Flags v1

Prop #

Size #

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

CSS framework #

You can apply CSS framework attributes directly to the icon component using the class prop.

Tailwind CSS #

Bootstrap #

A11y #

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

Events #

All icons have the following events:

Passing down other attributes #

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