is the css function supposed to also take an function as an argument
Opened this issue · 1 comments
joseDaKing commented
is the css function supposed to also take an function as an argument because it is not documented and there are no type definitions for it?
import { css } from "goober";
export default function App() {
const clsn = css((...props) => {
console.log(props)
return {
padding: "32px",
backgroundColor: "red"
};
});
return <div className={clsn} />;
}
cristianbote commented
Ah, you are right! It should be documented indeed. Would you feel comfortable doing it?