package styled-ppx

  1. Overview
  2. Docs
Type-safe styled components for ReScript and Melange

Install

dune-project
 Dependency

Authors

Maintainers

Sources

styled-ppx-0.61.0.tbz
sha256=c6eba770e9e9bb9002bf3f759f99ebcec6d7b4132c6c2ad562886c88b6839bab
sha512=8a1776181f6ef292518a0b96b1fae7927cf5767dee75dc04bc05d99d297866e45a5943455bea9ce500a04a635bd179d2b2bec8bccebc55dc1e696a23b3efad69

doc/styled-ppx.native/Css_types/Length/index.html

Module Css_types.Length

type length = [
  1. | `ch of float
  2. | `cqw of float
  3. | `cqh of float
  4. | `cqi of float
  5. | `cqb of float
  6. | `cqmin of float
  7. | `cqmax of float
  8. | `em of float
  9. | `ex of float
  10. | `rem of float
  11. | `vh of float
  12. | `vw of float
  13. | `vmin of float
  14. | `vmax of float
  15. | `px of int
  16. | `pxFloat of float
  17. | `cm of float
  18. | `mm of float
  19. | `inch of float
  20. | `pc of float
  21. | `pt of int
  22. | `zero
  23. | Percentage.t
  24. | Var.t
]
type calc_value = [
  1. | length
  2. | `min of t array
  3. | `max of t array
  4. | `add of calc_value * calc_value
  5. | `sub of calc_value * calc_value
  6. | `mult of calc_value * calc_value
  7. | `div of calc_value * float
  8. | `calc of calc_value
  9. | `num of float
]
and t = [
  1. | length
  2. | `calc of calc_value
  3. | `min of t array
  4. | `max of t array
]
val ch : float -> [> `ch of float ]
val cqw : float -> [> `cqw of float ]
val cqh : float -> [> `cqh of float ]
val cqi : float -> [> `cqi of float ]
val cqb : float -> [> `cqb of float ]
val cqmin : float -> [> `cqmin of float ]
val cqmax : float -> [> `cqmax of float ]
val em : float -> [> `em of float ]
val ex : float -> [> `ex of float ]
val rem : float -> [> `rem of float ]
val vh : float -> [> `vh of float ]
val vw : float -> [> `vw of float ]
val vmin : float -> [> `vmin of float ]
val vmax : float -> [> `vmax of float ]
val px : int -> [> `px of int ]
val pxFloat : float -> [> `pxFloat of float ]
val cm : float -> [> `cm of float ]
val mm : float -> [> `mm of float ]
val inch : float -> [> `inch of float ]
val pc : float -> [> `pc of float ]
val pt : int -> [> `pt of int ]
val zero : [> `zero ]
val num : float -> [> `num of float ]
val toString : t -> string
val calc_value_to_string : calc_value -> string
val minmax_to_string : [< `calc of [< `add of t * t | `div of t * float | `mult of t * t | `num of float | `sub of t * t ] | `ch of float | `cm of float | `cqb of float | `cqh of float | `cqi of float | `cqmax of float | `cqmin of float | `cqw of float | `em of float | `ex of float | `inch of float | `max of t array | `min of t array | `mm of float | `num of float | `pc of float | `percent of float | `pt of int | `px of int | `pxFloat of float | `rem of float | `var of string | `varDefault of string * string | `vh of float | `vmax of float | `vmin of float | `vw of float | `zero max min ] -> string