Icon Showcase

arrow

arrow_tailed

curved_arrow

calendar

chart

row_item

chart_group

check

copy

drag_grip

edit

link

link_internal

list

minus

plus

rotate

refresh

sort

table

trashcan

x

three_dots

clock

sun

moon

magnifying_glass

smile_face

nuetral_face

frown_face

pointer_hand

touch_circle

profile

share

invite

feedback

idea

ar_one_to_one

ar_four_to_three

ar_three_to_two

ar_sixteen_to_nine

resize

crop

folder

file

file_drop

linked

unlinked

sliders

brain

brush

redo_arrow

undo_arrow

opposing_arrows

warning

pinpoint

paperclip

reply

reply_all

forward

mail

mail_opened

mail_received

mail_sent

mail_sent_opened

Component Documentation

Component Name

Icon

Builder Function Name

create_icon_manager

Description

renders an inline svg icon from a fixed set of icon_ids, with optional color, rotation, and animation

Use like example

Config

PropertyTypeDefaultDescription
icon_idstring

identifies the icon to render (e.g. 'arrow', 'check', 'trashcan').

degnumber

0

icon rotation in degrees

colorstring

var(--g4-t)

stroke color for the icon

color_altstring

var(--g12-t)

alternate color (used in certain icons like 'sort' for ascending vs. descending). if not used, it falls back to the main color

fillstring

none

svg fill color (e.g., 'none' or a color hex)

sizenumber

2

icon size in rem

swnumber

60

stroke width setting for the icon

mlnumber

0

margin-left in rem

mrnumber

0

margin-right in rem

mtnumber

0

margin-top in rem

mbnumber

0

margin-bottom in rem

sort_statestring

used by the 'sort' icon to highlight ascending or descending arrow: 'asc', 'desc', or null

is_shimmy_infiniteboolean

false

if true, the icon keeps rotating slightly (shimmy) forever

is_shimmyableboolean

false

if true, icon can be triggered to shimmy for 1s with trigger_shimmy()

movement_stiffnessnumber

0.1

reserved for future motion config (svelte spring or similar)

movement_dampingnumber

0.1

reserved for future motion config (svelte spring or similar)

idstring

unique id for the icon. if not provided, a random id is generated

Methods

MethodDescriptionParametersReturns
trigger_shimmy

activates a shimmy animation for ~1 second, if is_shimmyable is true

No Params

void
set_attributes

updates the manager's config based on a new input object

input: object

void

Returned Properties

PropertyTypeDescription
idstring

unique id used in the dom for the icon container

icon_idstring

current icon id specifying which path or group of paths is rendered

degnumber

the icon's current rotation in degrees

deg_springnumber

a placeholder for a svelte motion spring around deg (not fully implemented)

colorstring

the main stroke color

color_altstring

an optional alternate color, used in certain icons (e.g. 'sort')

fillstring

the fill color for shapes in the svg

sizenumber

the icon's width/height in rem

swnumber

the icon's stroke width

mlnumber

margin-left in rem

mrnumber

margin-right in rem

mtnumber

margin-top in rem

mbnumber

margin-bottom in rem

sort_statestring

if 'asc' or 'desc', the sort icon shows the alt color for either ascending or descending

is_shimmy_infiniteboolean

if true, the icon is in a constant shimmy animation

is_shimmyableboolean

if true, the icon can be triggered to shimmy with trigger_shimmy()

movement_stiffnessnumber

reserved for future usage with svelte motions

movement_dampingnumber

reserved for future usage with svelte motions

is_shimmyingboolean

true if the icon is currently shimmying in a short animation

icon
Sponsored byContibase