<template>
<FormKit
type="text"
label="Your username"
value="calypso"
help="Pick a username people will remember!"
>
<template #suffix>
<label class="formkit-icon formkit-icon-suffix-block">
<span>m/2</span>
</label>
</template>
</FormKit>
</template>
<style>
.formkit-icon-suffix-block {
box-shadow: -1px 0 0 0 rgba(0,0,0,.33);
background: var(--fk-bg-decorator);
}
.formkit-icon-suffix-block > * {
align-self: center;
}
</style>
Last active
May 13, 2023 18:22
-
-
Save BananaAcid/37648e216669936ee11d736397cf6ad4 to your computer and use it in GitHub Desktop.
FormKit right side unit (default is left side)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment