Skip to main content

src/components/icon/Icon.ts:

class: Icon, btu-icon

Superclass

NameModulePackage
LitElementlit

Mixins

NameModulePackage
EventEmitterMixin/src/util/EventEmitterMixin.js
ReadyMixin/src/util/ReadyMixin.js

Static Fields

NamePrivacyTypeDefaultDescriptionInherited From
tagName

Fields

NamePrivacyTypeDefaultDescriptionInherited From
size'xs' | 'sm' | 'md' | 'lg' | 'xl''md'Size of the icon. - 'xs': Extra small (0.75rem) - 'sm': Small (1rem) - 'md': Medium (1.25rem, default) - 'lg': Large (1.5rem) - 'xl': Extra large (1.75rem)
symbolstring'circle-dashed'Lucide icon name to display. See https://lucide.dev/icons/ for available icons.
gradient'ai' | 'error' | 'gray' | 'primary' | 'purple' | 'rose' | 'success' | 'teal' | 'warning' | undefinedTheme color to use for gradient fill. When set, icon displays with gradient. When undefined, icon inherits parent text color.

Events

NameTypeDescriptionInherited From
btu-icon-readyCustomEventFired after first render and initialization

Attributes

NameFieldInherited From
sizesize
symbolsymbol
gradientgradient

CSS Properties

NameDefaultDescription
--Icon-sizeIcon size (overrides size default)
--Icon-fillIcon fill color for filled icons (e.g., "currentColor")
--Icon-svgSVG data URI for mask-based rendering

Exports

KindNameDeclarationModulePackage
jsdefaultIconsrc/components/icon/Icon.ts
custom-element-definitionbtu-iconIconsrc/components/icon/Icon.ts