carbon-wrapper/src/main/ch/lyrion/carbon/toggle/ui_toggle_skeleton.cljs

17 lines
686 B
Clojure

(ns ch.lyrion.carbon.toggle.ui-toggle-skeleton
(:require
[ch.lyrion.carbon.factory-helpers :as h]
["carbon-components-react/lib/components/Toggle/Toggle.Skeleton.js" :default ToggleSkeleton]))
(def ui-toggle-skeleton
"Props:
- aria-label (string): Default: 'Toggle is loading'
- id (string): Provide an id that unique represents the underlying <input>
- labelText (string): Provide the text that will be read by a screen reader when visiting this
control
`aria-label` is always required but will be null if `labelText` is also
provided
- className (string): Specify an optional className to add to the form item wrapper.
"
(h/factory-apply ToggleSkeleton))