Skip to content

Conversation

@akinoccc
Copy link
Collaborator

Usage

<script setup lang="ts">
// Return a class name
const className = cssClass`
  color: red;
`
</script>

<template>
  <!-- The text's color will be rendered in red -->
  <div class="className">Test<div>
</template>

@github-actions
Copy link

👋 @akinocccc, Thanks for opening the PR. We'll review your PR as soon as possible.

@akinoccc akinoccc changed the title Feat/css class feat(helper): [cssClass] add function to generate common class May 23, 2024
@akinoccc akinoccc mentioned this pull request May 23, 2024
Closed
9 tasks
@akinoccc akinoccc merged commit 43275ed into main May 23, 2024
@github-actions
Copy link

🎉 @akinocccc, The PR is merged. Thanks for your contribution.

@github-actions
Copy link

🎉 This issue has been resolved in version 1.2.0 🎉

The release is available on GitHub release

@akinoccc akinoccc deleted the feat/css-class branch June 14, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants