Unit

Unit of dimension tokens.

Available from: 2.0.0

Import


                                                        
                                                        
                                                            import { Unit } from "@supernovaio/sdk"
                                                        
                                                            

Cases

The following enumeration cases are available:

  • pixels: Represents a pixel unit (px in CSS).
  • percent: Represents a percent unit (% in CSS).
  • rem: Represents a rem unit (rem in CSS).
  • ms: Represents milliseconds (ms in CSS).
  • raw: Represents a unitless value.

Formal definition


                                                        
                                                        
                                                            enum Unit {
                                                          pixels = "Pixels",
                                                          percent = "Percent",
                                                          rem = "Rem",
                                                          ms = "Ms",
                                                          raw = "Raw",
                                                        }