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

https://github.com/qwikifiers/qwik-flow

Qwik Control Flow Components
https://github.com/qwikifiers/qwik-flow

Last synced: about 1 year ago
JSON representation

Qwik Control Flow Components

Awesome Lists containing this project

README

          

Qwik Control Flow Components


Use semantic control flow components in your Qwik app.



@qwikifiers/qwik-flow npm


MIT


All Contributors



## Table of Contents

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [Contributing](#contributing)
- [Code Of Conduct](#code-of-conduct)
- [Contributors](#contributors)
- [Related Links](#related-links)
- [License](#license)

## Installation

```console
npm install -D @qwikifers/qwik-flow
```

## Usage

`If` component.
```tsx
import { If } from '@qwikifers/qwik-flow';

const toogle = useSignal(false);

{() => }

```

`For` component:
```tsx
import { For } from '@qwikifers/qwik-flow';

(

No data found
)}>
{(item, key) => }

```

`Switch`/`Case` components for more complex rendering logic.
```tsx
import { Switch, Case } from '@qwikifers/qwik-flow';

const option = useSignal('1');

Invalid option
}>

{() =>

selected: 1 - Car

}


{() =>

selected: 2 - Airplane

}


{() =>

selected: 3 - Train

}

```

## Contributing

Want to contribute? Yayy! 🎉

Please read and follow our [Contributing Guidelines](CONTRIBUTING.md) to learn what are the right steps to take before contributing your time, effort and code.

Thanks 🙏


## Code Of Conduct

Be kind to each other and please read our [code of conduct](CODE_OF_CONDUCT.md).


This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!


## Related Links

- [qwik-flow Discord](https://discord.gg/PVWUUejrez)
- [Qwik Discord](https://qwik.builder.io/chat)
- [Qwik Docs](https://qwik.builder.io/)

## License

MIT