Skip to content

An open source design system that's fully customizable and agent ready

TypeScript
2.6 KB
Raw Blame
// Generated by @astryxdesign/native. Do not edit.
/// A shared icon name (AST-082 FR17): a built-in name, or a registered
/// `<library>:<name>` name. A view draws the image the theme or the platform
/// maps it to.
public struct IconName: RawRepresentable, ExpressibleByStringLiteral, Hashable, Codable, Sendable {
  public let rawValue: String
  public init(rawValue: String) { self.rawValue = rawValue }
  public init(stringLiteral value: String) { self.rawValue = value }
  public init(from decoder: any Decoder) throws {
    self.rawValue = try decoder.singleValueContainer().decode(String.self)
  }
  public func encode(to encoder: any Encoder) throws {
    var container = encoder.singleValueContainer()
    try container.encode(rawValue)
  }
  /// Every built-in name, in the order AST-082 FR17 lists them.
  public static let builtIn: [IconName] = [.close, .chevronDown, .chevronLeft, .chevronRight, .chevronsLeft, .chevronsRight, .check, .success, .error, .warning, .info, .calendar, .clock, .externalLink, .menu, .moreHorizontal, .search, .upload, .arrowUp, .arrowDown, .arrowsUpDown, .funnel, .eyeSlash, .viewColumns, .copy, .checkDouble, .wrench, .stop, .microphone]
  public static let close: IconName = "close"
  public static let chevronDown: IconName = "chevronDown"
  public static let chevronLeft: IconName = "chevronLeft"
  public static let chevronRight: IconName = "chevronRight"
  public static let chevronsLeft: IconName = "chevronsLeft"
  public static let chevronsRight: IconName = "chevronsRight"
  public static let check: IconName = "check"
  public static let success: IconName = "success"
  public static let error: IconName = "error"
  public static let warning: IconName = "warning"
  public static let info: IconName = "info"
  public static let calendar: IconName = "calendar"
  public static let clock: IconName = "clock"
  public static let externalLink: IconName = "externalLink"
  public static let menu: IconName = "menu"
  public static let moreHorizontal: IconName = "moreHorizontal"
  public static let search: IconName = "search"
  public static let upload: IconName = "upload"
  public static let arrowUp: IconName = "arrowUp"
  public static let arrowDown: IconName = "arrowDown"
  public static let arrowsUpDown: IconName = "arrowsUpDown"
  public static let funnel: IconName = "funnel"
  public static let eyeSlash: IconName = "eyeSlash"
  public static let viewColumns: IconName = "viewColumns"
  public static let copy: IconName = "copy"
  public static let checkDouble: IconName = "checkDouble"
  public static let wrench: IconName = "wrench"
  public static let stop: IconName = "stop"
  public static let microphone: IconName = "microphone"
}