Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/boringdeveloper/pageupgelsnippets


https://github.com/boringdeveloper/pageupgelsnippets

Last synced: 21 days ago
JSON representation

Awesome Lists containing this project

README

        

# PageUP GEL Snippets for VS Code

## Available Commands

`pugcontainer`

```ts
import { container } from "@pageuppeopleorg/gel/src/components/core";
import { css } from "./styles.css";

export const { Sample } = container(
"Sample",
(z) => ({
name: z.string(),
}),
(props) => {
return

{props.name}
;
}
);
```

`pugcomponent`

```ts
import { component } from "@pageuppeopleorg/gel/src/components/core";
import { css } from "./styles.css";

export const { Sample } = component(
"Sample",
(z) => ({
name: z.string(),
}),
(props) => {
return

{props.name}
;
}
);
```

`pugpage`

```ts
import { page } from "@pageuppeopleorg/gel/src/components/core";
import { css } from "./styles.css";

export const { Sample } = page(
"Sample",
(z) => ({
name: z.string(),
}),
(props) => {
return

{props.name}
;
}
);
```

`pugcontainerx`

```ts
import { containerX } from "@pageuppeopleorg/gel/src/components/core";
import { css } from "./styles.css";

interface Props {
name: string;
}

export const { Sample } = containerX()(
"Sample",
(z) => ({
name: z.string(),
}),
(props) => {
return

{props.name}
;
}
);
```

`pugcomponentx`

```ts
import { componentX } from "@pageuppeopleorg/gel/src/components/core";
import { css } from "./styles.css";

interface Props {}

export const { Sample } = componentX()(
"Sample",
(z) => ({
name: z.string(),
}),
(props) => {
return

{props.name}
;
}
);
```

`pugpagex`

```ts
import { pageX } from "@pageuppeopleorg/gel/src/components/core";
import { css } from "./styles.css";

interface Props {}

export const { Sample } = pageX()(
"Sample",
(z) => ({
name: z.string(),
}),
(props) => {
return

{props.name}
;
}
);
```

`pugcx`

```ts
import { cx, styleExportProvider } from "@pageuppeopleorg/gel/src/styling";

const container = cx({});

export const { css } = styleExportProvider({
container,
});
```