@singularit/base-input

Usage
953 1
Install
npm install @singularit/base-input@beta
Latest Version:1.0.0-beta.8
Vue:3
License:MIT
Last Updated:Aug 1, 2023
Links: GitHub  ·  npm
Maintainer: orbisk

@singularit/base-input

Usage

npm i @singularit/base-input
<template>
  <SBaseInput
    v-model="name"
    placeholer="Enter your name"
  />
</template>

<script setup lang="ts">
import {ref} from 'vue'
import {SBaseInput} from '@singularit/base-input'

const name = ref('')
</script>

Props

Prop Type Default Description
modelValue string undefined
type string text TODO
inputAttributes object undefined you can pass any HTML attributes to the input/textarea
classes string {} used to override styling of input and children elements

Styling

The input is styled with a default theme. If you want to override some parts of the theme you can use the classes prop to pass any calles (e.g. tailwind classes).

<SBaseInput :classes="{wrapper: 'rounded-full'}"></SBaseInput>

SBaseInput is designed to be wrapped in a component inside you project. Due to its flexibility it is very adaptable. You can also create simple number inputs, text inputs, textareas, etc. (use the inputAttributes prop to pass any HTML attributes).

See interface InputClass.

Examples

coming soon

Related Packages

tailwind-config-viewer

View your Tailwind CSS config file...visually!

19,524,150 2,211
tailwindcss-rtl

Right-to-left (RTL) and logical-direction utilities for Tailwind CSS v3 and v4

2,280,783 355
variantwind

Tailwind Variant Directive for Vue

1,934
@nuxtus/nuxtus

Directus/Nuxt boilerplate with Tailwind CSS.

1,882 90
create-nuxtus

npx command for generating a new Nuxtus boilerplate website.

1,227 1

Version History

Pre-releases (8)
Version Released Vue License
1.0.0-beta.8 ^3.2.25 MIT
1.0.0-beta.7 ^3.2.25 MIT
1.0.0-beta.6 ^3.2.25 MIT
1.0.0-beta.5 ^3.2.25 MIT
1.0.0-beta.4 ^3.2.25 MIT