Skip to content

The idea was to make @jxnblk’s cxs a bit more like jsxstyle. Worked pretty nicely.

Notifications You must be signed in to change notification settings

meyer-archives/cxs-primitives

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cxs-primitives

jsxstyle-like primitive components that pass inline props as style props to cxs.

Good things to know

  • The children prop is automatically assumed to be Not CSS.
  • The component prop lets you specify the base component.
  • The props prop (how meta!) lets you set non-style properties on the base component.

TODO

  • Handle pseudoclasses a bit more nicely. Right now, things look pretty gross:

    <Block
      opacity={0.5}
      {...{':hover': {
        opacity: 1.0,
      }}}>
      Hover Me
    </Block>

    Proposal:

    <Block
      opacity={0.5}
      hover={{
        opacity: 1.0
      }}>
      Hover Me
    </Block>

About

The idea was to make @jxnblk’s cxs a bit more like jsxstyle. Worked pretty nicely.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published