Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Layout component to ease readability #65

Open
kktos opened this issue Dec 5, 2022 · 0 comments
Open

[Feature] Layout component to ease readability #65

kktos opened this issue Dec 5, 2022 · 0 comments
Labels
Feature Type: New Feature

Comments

@kktos
Copy link

kktos commented Dec 5, 2022

What problem does this feature solve?

With tailwind, we may use mainly div and span with a lot of classes. It could become really cumbersome to read, especially for some classes. For instance, grid or flex.

What is your idea for solve this issue

A possible enhancement could be to add some layout component.
For instance, instead of using the flex class, we may have a layout component for that.
Before:

<div class="flex flex-row flex-wrap">
    <span data-test="name" class="mr-1">{{ data.name }}</span>
    <span v-if="data?.qualification" data-test="qualification" class="capitalize">({{ data.qualification }})</span>
</div>

After:

<flex row wrap>
    <span data-test="name" class="mr-1">{{ data.name }}</span>
    <span v-if="data?.qualification" data-test="qualification" class="capitalize">({{ data.qualification }})</span>
</flex>

Nothing amazing here. Just a little help for the dev ;)

@kktos kktos added the Feature Type: New Feature label Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Type: New Feature
Projects
None yet
Development

No branches or pull requests

1 participant