SVG-encoded material UI icons.
SVG-encoded material UI icons. See https://material-ui.com/components/icons
(concat-class-string fragments)
(concat-class-string type fragments)
(concat-class-string base-str type fragments)
fragments
is a collection of fragments to concat.
`fragments` is a collection of fragments to concat.
(icon {:keys [width height modifiers states title] :as props} icon-name)
DEPRECATED. Use ui-icon
instead.
Gets an SVG representation of the given icon. Scan the source of this namespace for the defined icons.
props
:
width
and height
: Size. defaults to 24.modifiers
: A sequence of modifiers as keywords, like :X, which adds c-icon--X
to the resulting classes.states
: A sequence of states like :open. Adds classes like is-open
title
: A string to use as the title elementmodifiers
and states
.icon-name
: One of the icons defined in this file, as a keyword.DEPRECATED. Use `ui-icon` instead. Gets an SVG representation of the given icon. Scan the source of this namespace for the defined icons. - `props`: - `width` and `height`: Size. defaults to 24. - `modifiers`: A sequence of modifiers as keywords, like :X, which adds `c-icon--X` to the resulting classes. - `states`: A sequence of states like :open. Adds classes like `is-open` - `title`: A string to use as the title element - All other keys pass through to the SVG element itself. If you specify className then it overrides `modifiers` and `states`. - `icon-name`: One of the icons defined in this file, as a keyword.
(title-case s)
Capitalize every word in a string
Capitalize every word in a string
(ui-icon {:keys [icon width height title] :as props})
Gets an SVG representation of the given icon. Scan the source of this namespace for the defined icons.
Props can contain:
icon
: The SVG icon to use. The icon name can use the material UI underscored names, or clojure-style hyphenated
names instead. See the source of this ns for all icons, or the material UI icon docs.title
: A string to use as the title elementReturns an empty div if the icon is invalid.
Gets an SVG representation of the given icon. Scan the source of this namespace for the defined icons. Props can contain: - `icon`: The SVG icon to use. The icon name can use the material UI underscored names, or clojure-style hyphenated names instead. See the source of this ns for all icons, or the material UI icon docs. - `title`: A string to use as the title element - All other keys pass through (and will override predefined props such as :viewBox) on the SVG element itself. I.e. you can pass :className, etc. Returns an empty div if the icon is invalid.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close