website logo
👥 Community🎯 Samples on GitHub🚦 System Status
💡 Guides
🚀 Examples
🍕 Developer Reference
⚡️ Changelog
🎥 Video Library
Navigate through spaces
⌘K
Overview
Reference
Actions
Data
UI
Widgets
Docs powered by
Archbee
Reference
UI

jc-icon

19min

Icon component used mostly in custom components

The schema defines the following properties:

Property

Type

Required

Description

type

component.icon

true



instanceId

InstanceId | Expression

false



when

Expression | boolean

false



options

Icon Options

true



instanceId (InstanceId | Expression)

when (Expression | boolean)

options (Icon Options, required)

Properties of the options object:

Property

Type

Required

Description

icon

icon-name | string

true

Name of the icon

color

ColorOrConditionalColor

false

Define color of icon or color based on conditions. First evaluated to true will be used.

emphasis

EmphasisDefinition

false

Change opacity of icon

size

extra-small | small | medium | regular | large | extra-large | string

false

Size of the icon with predefined values or expression

type

basic | contained | duotone | string

false

Type of the icon design

shape

circle | rounded | square | string

false

Shape of the icon

onPress

keg-action-in-background

false

Action Keg component that will be triggered by pressing on this component.

icon (icon-name | string, required)

Name of the icon

The object must be any of the following types:

icon (icon-name)

icon (string)

color (ColorOrConditionalColor)

Define color of icon or color based on conditions. First evaluated to true will be used.

emphasis (EmphasisDefinition)

Change opacity of icon

size (extra-small | small | medium | regular | large | extra-large | string)

Size of the icon with predefined values or expression

The object must be any of the following types:

size (string)

Default: 24

type (basic | contained | duotone | string)

Type of the icon design

The object must be any of the following types:

type (string)

Default: "basic"

shape (circle | rounded | square | string)

Shape of the icon

The object must be any of the following types:

shape (string)

Default: "rounded"

onPress (keg-action-in-background)

Action Keg component that will be triggered by pressing on this component.



Sub Schemas

The schema defines the following additional types:

ColorOrConditionalColor (primary | BasicColor | string | object[])

The object must be any of the following types:

ColorOrConditionalColor (BasicColor)

ColorOrConditionalColor (string)

ColorOrConditionalColor (object[])

The object is an array with all elements of the type object.

The array object has the following properties:

BasicColor (enum<string>)

This element must be one of the following enum values:

  • color1
  • color2
  • color3
  • color4
  • color5
  • color6
  • color7
  • color8
  • color9
  • color10
  • color11
  • color12
  • color13
  • color14

EmphasisDefinition (extra-low | low | low-medium | medium | high | string)

The object must be any of the following types:

EmphasisDefinition (string)



Updated 25 Sep 2023
Did this page help you?
PREVIOUS
jc-form
NEXT
jc-image
Docs powered by
Archbee
TABLE OF CONTENTS
instanceId (InstanceId | Expression)
when (Expression | boolean)
options (Icon Options, required)
icon (icon-name | string, required)
icon (icon-name)
icon (string)
color (ColorOrConditionalColor)
emphasis (EmphasisDefinition)
size (extra-small | small | medium | regular | large | extra-large | string)
size (string)
type (basic | contained | duotone | string)
type (string)
shape (circle | rounded | square | string)
shape (string)
onPress (keg-action-in-background)
Sub Schemas
ColorOrConditionalColor (primary | BasicColor | string | object[])
ColorOrConditionalColor (BasicColor)
ColorOrConditionalColor (string)
ColorOrConditionalColor (object[])
BasicColor (enum<string>)
EmphasisDefinition (extra-low | low | low-medium | medium | high | string)
EmphasisDefinition (string)
Docs powered by
Archbee
Copyright © 2023 Jigx, Inc. All rights reserved. Terms of Service