Media / foldkit-media/icons

IconifySet

const · packages/media/src/icons/index.ts:258

const IconifySet: Schema.Struct<{
  readonly width: Schema.optional<Schema.Number>
  readonly height: Schema.optional<Schema.Number>
  readonly left: Schema.optional<Schema.Number>
  readonly top: Schema.optional<Schema.Number>
  readonly prefix: Schema.String
  readonly icons: Schema.$Record<
    Schema.String,
    Schema.Struct<{
      readonly width: Schema.optional<Schema.Number>
      readonly height: Schema.optional<Schema.Number>
      readonly left: Schema.optional<Schema.Number>
      readonly top: Schema.optional<Schema.Number>
      readonly body: Schema.String
    }>
  >
  readonly aliases: Schema.optional<
    Schema.$Record<
      Schema.String,
      Schema.Struct<{
        readonly width: Schema.optional<Schema.Number>
        readonly height: Schema.optional<Schema.Number>
        readonly left: Schema.optional<Schema.Number>
        readonly top: Schema.optional<Schema.Number>
        readonly parent: Schema.String
        readonly rotate: Schema.optional<Schema.Number>
        readonly hFlip: Schema.optional<Schema.Boolean>
        readonly vFlip: Schema.optional<Schema.Boolean>
      }>
    >
  >
}>

Its type

type IconifySet = typeof IconifySet.Type

An Iconify set, as its JSON file holds it (@iconify-json/<prefix>/icons.json). What the drawing does not need (info, categories, an icon's hidden) is read past.

In the guides

  • IconsMedia / foldkit-media