Allow passing class from preact component (#1223)
Co-authored-by: Paweł Kuna <1282324+codecalm@users.noreply.github.com>
This commit is contained in:
parent
ef15fcad96
commit
c46a85f995
|
|
@ -15,6 +15,7 @@ const createPreactComponent = (
|
|||
title,
|
||||
children,
|
||||
className = '',
|
||||
class: cls = '',
|
||||
style,
|
||||
...rest
|
||||
}: IconProps) =>
|
||||
|
|
@ -24,7 +25,7 @@ const createPreactComponent = (
|
|||
...defaultAttributes[type],
|
||||
width: String(size),
|
||||
height: size,
|
||||
class: [`tabler-icon`, `tabler-icon-${iconName}`, className].join(' '),
|
||||
class: [`tabler-icon`, `tabler-icon-${iconName}`, cls, className].join(' '),
|
||||
...(type === 'filled'
|
||||
? {
|
||||
fill: color,
|
||||
|
|
|
|||
Loading…
Reference in New Issue