Skip to content

eykrehbein/atomize

Repository files navigation


Atomize

A collection of tiny, modular & type-safe libraries that enhance the default React workflow

Packages

Docs

You can find a well structured documentation at docs.atomize.xyz

Examples (more can be found in the docs)

Creating stylable and animatable components

import { createBaseComponent, px, percent } from "@atomize/component";

const Button = createBaseComponent("button")`
  background-color: red;
`;

export const App = () => (
    <Button animate={{ width: percent(100) }} $color="red" $marginTop={px(20)}>
        Click
    </Button>
);

Creating context and provider at the same time

import { createContext } from "@atomize/context";

const { Context, Provider } = createContext(
    { email: "test@atomize.xyz" },
    () => {
        if (condition) return { email: "conditionTrue@atomize.xyz" };

        return { email: "conditionFalse@atomize.xyz" };
    }
);

// ---

const App = () => <Provider>Hello World</Provider>;

LICENSE

MIT

About

A collection of tiny, modular & type-safe libraries that enhance the default React workflow

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors