Package-level declarations

Types

Link copied to clipboard
abstract class AbstractCssHolder(sheet: StyleSheet, ruleSets: RuleSet)
Link copied to clipboard
typealias ABuilder = StyledDOMBuilder<A>.() -> Unit
Link copied to clipboard
Link copied to clipboard
typealias AnyTagStyledBuilder = StyledDOMBuilder<CommonAttributeGroupFacade>
Link copied to clipboard
Link copied to clipboard
class CssHolder(sheet: StyleSheet, ruleSets: RuleSet) : AbstractCssHolder
Link copied to clipboard
data class CssInfo(val isFresh: Boolean, val className: ClassName)
Link copied to clipboard
external interface CustomStyledProps : Props
Link copied to clipboard
typealias DIVBuilder = StyledDOMBuilder<DIV>.() -> Unit
Link copied to clipboard
Link copied to clipboard
interface HasCssSuffix

Provides a cssSuffix to be used when constructing CSS class names. Simple hash codes are not suitable for this as they are not very human-readable and their computation can be more complex than needed.

Link copied to clipboard
typealias HTMLTagBuilder = StyledDOMBuilder<HTMLTag>.() -> Unit
Link copied to clipboard
class Import(url: String, types: List<String> = listOf())
Link copied to clipboard
typealias INPUTBuilder = StyledDOMBuilder<INPUT>.() -> Unit
Link copied to clipboard
typealias SPANBuilder = StyledDOMBuilder<SPAN>.() -> Unit
Link copied to clipboard
object Styled
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class StyledDOMBuilderImpl<out T : Tag>(factory: (TagConsumer<Unit>) -> T) : RDOMBuilderImpl<T> , StyledDOMBuilder<T>
Link copied to clipboard
Link copied to clipboard
external interface StyledNext
Link copied to clipboard
open class StyleSheet(name: String? = null, val isStatic: Boolean = true, imports: List<Import> = emptyList())

Represents a reusable piece of CSS code

Link copied to clipboard
data class UsedCssInfo(val className: ClassName, var usedBy: Int, val groupId: Int)

Functions

Link copied to clipboard
fun CssBuilder.animation(duration: Time = 0.s, timing: Timing = Timing.ease, delay: Time = 0.s, iterationCount: IterationCount = 1.times, direction: AnimationDirection = AnimationDirection.normal, fillMode: FillMode = FillMode.none, playState: PlayState = PlayState.running, builder: KeyframesBuilder.() -> Unit)
Link copied to clipboard
external fun createPrefixer(data: dynamic): Record<String, Any?>
Link copied to clipboard
inline fun <P : CustomStyledProps> RElementBuilder<P>.css(noinline handler: RuleSet)
inline fun CustomStyledProps.css(noinline handler: RuleSet)
inline fun StyledBuilder<*>.css(handler: RuleSet)
Link copied to clipboard

Use this function to assign a CSS class without any properties to an element

Link copied to clipboard
Link copied to clipboard
fun <T : StyleSheet> T.getClassName(getClass: (T) -> KProperty0<RuleSet>): String
Link copied to clipboard
Link copied to clipboard

Inject CSS rules defined in css into the DOM

Link copied to clipboard
fun RDOMBuilder<*>.inlineStyles(prefix: Boolean = true, preserveExisting: Boolean = false, builder: StyledElementBuilder)
Link copied to clipboard
external fun prefix(style: dynamic): Record<String, Any?>
Link copied to clipboard
Link copied to clipboard
inline fun RBuilder.styledA(href: String? = null, target: String? = null, block: StyledDOMBuilder<A>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledAbbr(block: StyledDOMBuilder<ABBR>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledAddress(block: StyledDOMBuilder<ADDRESS>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledArea(shape: AreaShape? = null, alt: String? = null, block: StyledDOMBuilder<AREA>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledArticle(block: StyledDOMBuilder<ARTICLE>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledAside(block: StyledDOMBuilder<ASIDE>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledAudio(block: StyledDOMBuilder<AUDIO>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledB(block: StyledDOMBuilder<B>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledBase(block: StyledDOMBuilder<BASE>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledBdi(block: StyledDOMBuilder<BDI>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledBdo(block: StyledDOMBuilder<BDO>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledBlockquote(block: StyledDOMBuilder<BLOCKQUOTE>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledBody(block: StyledDOMBuilder<BODY>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledBr(block: StyledDOMBuilder<BR>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledButton(formEncType: ButtonFormEncType? = null, formMethod: ButtonFormMethod? = null, type: ButtonType? = null, block: StyledDOMBuilder<BUTTON>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledCanvas(block: StyledDOMBuilder<CANVAS>.() -> Unit)
inline fun RBuilder.styledCanvas(content: String = "")
Link copied to clipboard
inline fun RBuilder.styledCaption(block: StyledDOMBuilder<CAPTION>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledCite(block: StyledDOMBuilder<CITE>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledCode(block: StyledDOMBuilder<CODE>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledCol(block: StyledDOMBuilder<COL>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledColgroup(block: StyledDOMBuilder<COLGROUP>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledDatalist(block: StyledDOMBuilder<DATALIST>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledDd(block: StyledDOMBuilder<DD>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledDel(block: StyledDOMBuilder<DEL>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledDetails(block: StyledDOMBuilder<DETAILS>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledDfn(block: StyledDOMBuilder<DFN>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledDialog(block: StyledDOMBuilder<DIALOG>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledDiv(block: StyledDOMBuilder<DIV>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledDl(block: StyledDOMBuilder<DL>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledDt(block: StyledDOMBuilder<DT>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledEm(block: StyledDOMBuilder<EM>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledEmbed(block: StyledDOMBuilder<EMBED>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledFieldset(block: StyledDOMBuilder<FIELDSET>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledFigcaption(block: StyledDOMBuilder<FIGCAPTION>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledFigure(block: StyledDOMBuilder<FIGURE>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledFooter(block: StyledDOMBuilder<FOOTER>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledForm(action: String? = null, encType: FormEncType? = null, method: FormMethod? = null, block: StyledDOMBuilder<FORM>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledH1(block: StyledDOMBuilder<H1>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledH2(block: StyledDOMBuilder<H2>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledH3(block: StyledDOMBuilder<H3>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledH4(block: StyledDOMBuilder<H4>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledH5(block: StyledDOMBuilder<H5>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledH6(block: StyledDOMBuilder<H6>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledHead(block: StyledDOMBuilder<HEAD>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledHeader(block: StyledDOMBuilder<HEADER>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledHr(block: StyledDOMBuilder<HR>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledHtml(block: StyledDOMBuilder<HTML>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledI(block: StyledDOMBuilder<I>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledIframe(sandbox: IframeSandbox? = null, block: StyledDOMBuilder<IFRAME>.() -> Unit)
inline fun RBuilder.styledIframe(sandbox: IframeSandbox? = null, content: String = "")
Link copied to clipboard
inline fun RBuilder.styledImg(alt: String? = null, src: String? = null, block: StyledDOMBuilder<IMG>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledInput(type: InputType? = null, formEncType: InputFormEncType? = null, formMethod: InputFormMethod? = null, name: String? = null, block: StyledDOMBuilder<INPUT>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledIns(block: StyledDOMBuilder<INS>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledKbd(block: StyledDOMBuilder<KBD>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledLabel(block: StyledDOMBuilder<LABEL>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledLegend(block: StyledDOMBuilder<LEGEND>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledLi(block: StyledDOMBuilder<LI>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledLink(href: String? = null, rel: String? = null, type: String? = null, block: StyledDOMBuilder<LINK>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledMain(block: StyledDOMBuilder<MAIN>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledMap(name: String? = null, block: StyledDOMBuilder<MAP>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledMark(block: StyledDOMBuilder<MARK>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledMath(block: StyledDOMBuilder<MATH>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledMeta(name: String? = null, content: String? = null, block: StyledDOMBuilder<META>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledMeter(block: StyledDOMBuilder<METER>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledNav(block: StyledDOMBuilder<NAV>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledNoscript(block: StyledDOMBuilder<NOSCRIPT>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledObject(block: StyledDOMBuilder<OBJECT>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledOl(block: StyledDOMBuilder<OL>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledOptgroup(label: String? = null, block: StyledDOMBuilder<OPTGROUP>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledOption(block: StyledDOMBuilder<OPTION>.() -> Unit)
inline fun RBuilder.styledOption(content: String = "")
Link copied to clipboard
inline fun RBuilder.styledOutput(block: StyledDOMBuilder<OUTPUT>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledP(block: StyledDOMBuilder<P>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledParam(name: String? = null, value: String? = null, block: StyledDOMBuilder<PARAM>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledPicture(block: StyledDOMBuilder<PICTURE>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledPre(block: StyledDOMBuilder<PRE>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledProgress(block: StyledDOMBuilder<PROGRESS>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledQ(block: StyledDOMBuilder<Q>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledRp(block: StyledDOMBuilder<RP>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledRt(block: StyledDOMBuilder<RT>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledRuby(block: StyledDOMBuilder<RUBY>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledSamp(block: StyledDOMBuilder<SAMP>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledScript(type: String? = null, src: String? = null, block: StyledDOMBuilder<SCRIPT>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledSection(block: StyledDOMBuilder<SECTION>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledSelect(block: StyledDOMBuilder<SELECT>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledSmall(block: StyledDOMBuilder<SMALL>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledSource(block: StyledDOMBuilder<SOURCE>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledSpan(block: StyledDOMBuilder<SPAN>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledStrong(block: StyledDOMBuilder<STRONG>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledStyle(type: String? = null, block: StyledDOMBuilder<STYLE>.() -> Unit)
inline fun RBuilder.styledStyle(type: String? = null, content: String = "")
Link copied to clipboard
inline fun RBuilder.styledSub(block: StyledDOMBuilder<SUB>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledSummary(block: StyledDOMBuilder<SUMMARY>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledSup(block: StyledDOMBuilder<SUP>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledSvg(block: StyledDOMBuilder<SVG>.() -> Unit)
inline fun RBuilder.styledSvg(content: String = "")
Link copied to clipboard
inline fun RBuilder.styledTable(block: StyledDOMBuilder<TABLE>.() -> Unit)
Link copied to clipboard
inline fun <T : Tag> RBuilder.styledTag(block: StyledDOMBuilder<T>.() -> Unit, noinline factory: (TagConsumer<Unit>) -> T)
Link copied to clipboard
inline fun RBuilder.styledTbody(block: StyledDOMBuilder<TBODY>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledTd(block: StyledDOMBuilder<TD>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledTextarea(rows: String? = null, cols: String? = null, wrap: TextAreaWrap? = null, block: StyledDOMBuilder<TEXTAREA>.() -> Unit)
inline fun RBuilder.styledTextarea(rows: String? = null, cols: String? = null, wrap: TextAreaWrap? = null, content: String = "")
Link copied to clipboard
inline fun RBuilder.styledTfoot(block: StyledDOMBuilder<TFOOT>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledTh(scope: ThScope? = null, block: StyledDOMBuilder<TH>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledThead(block: StyledDOMBuilder<THEAD>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledTime(block: StyledDOMBuilder<TIME>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledTitle(block: StyledDOMBuilder<TITLE>.() -> Unit)
inline fun RBuilder.styledTitle(content: String = "")
Link copied to clipboard
inline fun RBuilder.styledTr(block: StyledDOMBuilder<TR>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledUl(block: StyledDOMBuilder<UL>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledVar(block: StyledDOMBuilder<VAR>.() -> Unit)
Link copied to clipboard
inline fun RBuilder.styledVideo(block: StyledDOMBuilder<VIDEO>.() -> Unit)
Link copied to clipboard
fun StyledElement.toStyle(prefix: Boolean = true): Any