Skip to content

singularit-de/base-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

57912a8 · Aug 1, 2023

History

40 Commits
Aug 1, 2023
Jul 13, 2022
Jul 13, 2022
Jul 13, 2022
Jul 13, 2022
Aug 1, 2023
Jul 13, 2022
Jul 15, 2022
Jul 13, 2022
Aug 1, 2023
Jul 13, 2022
Aug 1, 2023
Aug 1, 2023
Jul 13, 2022
Jul 13, 2022
Jul 15, 2022
Jul 15, 2022
Jul 13, 2022
Jul 15, 2022

Repository files navigation

@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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published