1
0
Fork 0
mirror of synced 2024-10-04 20:13:35 +13:00
budibase/packages/builder/src/components/common/Input.svelte

34 lines
675 B
Svelte
Raw Normal View History

2020-01-31 05:22:19 +13:00
<script>
import {buildStyle} from "../../helpers.js"
2020-02-03 22:50:30 +13:00
export let value = ""
export let textAlign = "left"
export let width = "160px"
export let placeholder = ""
2020-05-08 01:30:04 +12:00
let style = buildStyle({ width, textAlign })
2020-01-31 05:22:19 +13:00
</script>
<input type="text" {placeholder} {style} on:change bind:value />
2020-02-03 22:50:30 +13:00
2020-01-31 05:22:19 +13:00
<style>
input {
width: 32px;
height: 32px;
font-size: 12px;
font-weight: 700;
margin: 0px 0px 0px 1px;
color: var(--ink);
opacity: 0.7;
padding: 0px 4px;
2020-01-31 05:22:19 +13:00
box-sizing: border-box;
border: 1px solid var(--grey);
border-radius: 2px;
outline: none;
float: right;
}
input::placeholder {
text-align: center;
2020-01-31 05:22:19 +13:00
}
</style>