statuses.mdx 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. ---
  2. title: Statuses
  3. summary: Status dots are particularly useful if you want to make an interface element more noticeable regardless of limited space.
  4. description: Highlight interface elements with status dots.
  5. ---
  6. ## Default markup
  7. Use the default status to notify users about the status of a component or page, helping them avoid confusion. Full list of available colors can be found in the [Colors](/docs/ui/base/colors) section.
  8. ```html
  9. <span class="status status-blue">Blue</span>
  10. <span class="status status-azure">Azure</span>
  11. ...
  12. ```
  13. Look at the example below to see how the status works:
  14. ```html example centered separated columns={2}
  15. <span class="status status-blue">Blue</span>
  16. <span class="status status-azure">Azure</span>
  17. <span class="status status-indigo">Indigo</span>
  18. <span class="status status-purple">Purple</span>
  19. <span class="status status-pink">Pink</span>
  20. <span class="status status-red">Red</span>
  21. <span class="status status-orange">Orange</span>
  22. <span class="status status-yellow">Yellow</span>
  23. <span class="status status-lime">Lime</span>
  24. <span class="status status-green">Green</span>
  25. <span class="status status-teal">Teal</span>
  26. <span class="status status-cyan">Cyan</span>
  27. ```
  28. ## Status with dot
  29. You can add a dot to the status to make it more noticeable. To do this, use the `.status-dot` element inside the `.status` element.
  30. ```html
  31. <span class="status status-blue">
  32. <span class="status-dot"></span>
  33. Blue
  34. </span>
  35. ```
  36. Look at the example below to see how the status with a dot works:
  37. ```html example centered separated columns={2}
  38. <span class="status status-blue">
  39. <span class="status-dot"></span>
  40. Blue
  41. </span>
  42. <span class="status status-azure">
  43. <span class="status-dot"></span>
  44. Azure
  45. </span>
  46. <span class="status status-indigo">
  47. <span class="status-dot"></span>
  48. Indigo
  49. </span>
  50. <span class="status status-purple">
  51. <span class="status-dot"></span>
  52. Purple
  53. </span>
  54. <span class="status status-pink">
  55. <span class="status-dot"></span>
  56. Pink
  57. </span>
  58. <span class="status status-red">
  59. <span class="status-dot"></span>
  60. Red
  61. </span>
  62. <span class="status status-orange">
  63. <span class="status-dot"></span>
  64. Orange
  65. </span>
  66. <span class="status status-yellow">
  67. <span class="status-dot"></span>
  68. Yellow
  69. </span>
  70. <span class="status status-lime">
  71. <span class="status-dot"></span>
  72. Lime
  73. </span>
  74. <span class="status status-green">
  75. <span class="status-dot"></span>
  76. Green
  77. </span>
  78. <span class="status status-teal">
  79. <span class="status-dot"></span>
  80. Teal
  81. </span>
  82. <span class="status status-cyan">
  83. <span class="status-dot"></span>
  84. Cyan
  85. </span>
  86. ```
  87. ### Animated dot
  88. You can also animate the dot to make it more noticeable. To do this, use the `.status-dot-animated` class inside the `.status-dot` element.
  89. ```html example centered separated columns={2}
  90. <span class="status status-blue">
  91. <span class="status-dot status-dot-animated"></span>
  92. Blue
  93. </span>
  94. <span class="status status-azure">
  95. <span class="status-dot status-dot-animated"></span>
  96. Azure
  97. </span>
  98. <span class="status status-indigo">
  99. <span class="status-dot status-dot-animated"></span>
  100. Indigo
  101. </span>
  102. <span class="status status-purple">
  103. <span class="status-dot status-dot-animated"></span>
  104. Purple
  105. </span>
  106. <span class="status status-pink">
  107. <span class="status-dot status-dot-animated"></span>
  108. Pink
  109. </span>
  110. <span class="status status-red">
  111. <span class="status-dot status-dot-animated"></span>
  112. Red
  113. </span>
  114. <span class="status status-orange">
  115. <span class="status-dot status-dot-animated"></span>
  116. Orange
  117. </span>
  118. <span class="status status-yellow">
  119. <span class="status-dot status-dot-animated"></span>
  120. Yellow
  121. </span>
  122. <span class="status status-lime">
  123. <span class="status-dot status-dot-animated"></span>
  124. Lime
  125. </span>
  126. <span class="status status-green">
  127. <span class="status-dot status-dot-animated"></span>
  128. Green
  129. </span>
  130. <span class="status status-teal">
  131. <span class="status-dot status-dot-animated"></span>
  132. Teal
  133. </span>
  134. <span class="status status-cyan">
  135. <span class="status-dot status-dot-animated"></span>
  136. Cyan
  137. </span>
  138. ```
  139. ## Lite status
  140. Use the lite status to make the status less noticeable. To do this, use the `.status-lite` class inside the `.status` element.
  141. ```html example centered separated columns={2}
  142. <span class="status status-blue status-lite">
  143. <span class="status-dot"></span>
  144. Blue
  145. </span>
  146. <span class="status status-azure status-lite">
  147. <span class="status-dot"></span>
  148. Azure
  149. </span>
  150. <span class="status status-indigo status-lite">
  151. <span class="status-dot"></span>
  152. Indigo
  153. </span>
  154. <span class="status status-purple status-lite">
  155. <span class="status-dot"></span>
  156. Purple
  157. </span>
  158. <span class="status status-pink status-lite">
  159. <span class="status-dot"></span>
  160. Pink
  161. </span>
  162. <span class="status status-red status-lite">
  163. <span class="status-dot"></span>
  164. Red
  165. </span>
  166. <span class="status status-orange status-lite">
  167. <span class="status-dot"></span>
  168. Orange
  169. </span>
  170. <span class="status status-yellow status-lite">
  171. <span class="status-dot"></span>
  172. Yellow
  173. </span>
  174. <span class="status status-lime status-lite">
  175. <span class="status-dot"></span>
  176. Lime
  177. </span>
  178. <span class="status status-green status-lite">
  179. <span class="status-dot"></span>
  180. Green
  181. </span>
  182. <span class="status status-teal status-lite">
  183. <span class="status-dot"></span>
  184. Teal
  185. </span>
  186. <span class="status status-cyan status-lite">
  187. <span class="status-dot"></span>
  188. Cyan
  189. </span>
  190. ```
  191. ## Status dots
  192. If you need only dot status, you can use the `.status-dot` class.
  193. ```html
  194. <span class="status-dot status-blue"></span>
  195. ```
  196. Look at the example below to see how the status dots work:
  197. ```html example centered separated
  198. <span class="status-dot status-blue"></span>
  199. <span class="status-dot status-azure"></span>
  200. <span class="status-dot status-indigo"></span>
  201. <span class="status-dot status-purple"></span>
  202. <span class="status-dot status-pink"></span>
  203. <span class="status-dot status-red"></span>
  204. <span class="status-dot status-orange"></span>
  205. <span class="status-dot status-yellow"></span>
  206. <span class="status-dot status-lime"></span>
  207. <span class="status-dot status-green"></span>
  208. <span class="status-dot status-teal"></span>
  209. <span class="status-dot status-cyan"></span>
  210. ```
  211. The dots can also be animated. To do this, use the `.status-dot-animated` class.
  212. ```html
  213. <span class="status-dot status-dot-animated status-blue"></span>
  214. ```
  215. The animated status dots can be used in the same way as the regular status dots.
  216. ```html example centered separated
  217. <span class="status-dot status-dot-animated status-blue"></span>
  218. <span class="status-dot status-dot-animated status-azure"></span>
  219. <span class="status-dot status-dot-animated status-indigo"></span>
  220. <span class="status-dot status-dot-animated status-purple"></span>
  221. <span class="status-dot status-dot-animated status-pink"></span>
  222. <span class="status-dot status-dot-animated status-red"></span>
  223. <span class="status-dot status-dot-animated status-orange"></span>
  224. <span class="status-dot status-dot-animated status-yellow"></span>
  225. <span class="status-dot status-dot-animated status-lime"></span>
  226. <span class="status-dot status-dot-animated status-green"></span>
  227. <span class="status-dot status-dot-animated status-teal"></span>
  228. <span class="status-dot status-dot-animated status-cyan"></span>
  229. ```
  230. ## Status indicator
  231. Use the status indicator to show the status of a component or page. The status indicator can be animated. To do this, use the `.status-indicator-animated` class.
  232. ```html example centered separated columns={1}
  233. <span class="status-indicator status-blue status-indicator-animated">
  234. <span class="status-indicator-circle"></span>
  235. <span class="status-indicator-circle"></span>
  236. <span class="status-indicator-circle"></span>
  237. </span>
  238. <span class="status-indicator status-azure status-indicator-animated">
  239. <span class="status-indicator-circle"></span>
  240. <span class="status-indicator-circle"></span>
  241. <span class="status-indicator-circle"></span>
  242. </span>
  243. <span class="status-indicator status-indigo status-indicator-animated">
  244. <span class="status-indicator-circle"></span>
  245. <span class="status-indicator-circle"></span>
  246. <span class="status-indicator-circle"></span>
  247. </span>
  248. <span class="status-indicator status-purple status-indicator-animated">
  249. <span class="status-indicator-circle"></span>
  250. <span class="status-indicator-circle"></span>
  251. <span class="status-indicator-circle"></span>
  252. </span>
  253. <span class="status-indicator status-pink status-indicator-animated">
  254. <span class="status-indicator-circle"></span>
  255. <span class="status-indicator-circle"></span>
  256. <span class="status-indicator-circle"></span>
  257. </span>
  258. <span class="status-indicator status-red status-indicator-animated">
  259. <span class="status-indicator-circle"></span>
  260. <span class="status-indicator-circle"></span>
  261. <span class="status-indicator-circle"></span>
  262. </span>
  263. <span class="status-indicator status-orange status-indicator-animated">
  264. <span class="status-indicator-circle"></span>
  265. <span class="status-indicator-circle"></span>
  266. <span class="status-indicator-circle"></span>
  267. </span>
  268. <span class="status-indicator status-yellow status-indicator-animated">
  269. <span class="status-indicator-circle"></span>
  270. <span class="status-indicator-circle"></span>
  271. <span class="status-indicator-circle"></span>
  272. </span>
  273. <span class="status-indicator status-lime status-indicator-animated">
  274. <span class="status-indicator-circle"></span>
  275. <span class="status-indicator-circle"></span>
  276. <span class="status-indicator-circle"></span>
  277. </span>
  278. <span class="status-indicator status-green status-indicator-animated">
  279. <span class="status-indicator-circle"></span>
  280. <span class="status-indicator-circle"></span>
  281. <span class="status-indicator-circle"></span>
  282. </span>
  283. <span class="status-indicator status-teal status-indicator-animated">
  284. <span class="status-indicator-circle"></span>
  285. <span class="status-indicator-circle"></span>
  286. <span class="status-indicator-circle"></span>
  287. </span>
  288. <span class="status-indicator status-cyan status-indicator-animated">
  289. <span class="status-indicator-circle"></span>
  290. <span class="status-indicator-circle"></span>
  291. <span class="status-indicator-circle"></span>
  292. </span>
  293. ```