mirror of
https://github.com/cupcakearmy/svelte-rest-demo.git
synced 2025-09-06 01:20:41 +00:00
client
This commit is contained in:
20
client/src/components/Field.svelte
Normal file
20
client/src/components/Field.svelte
Normal file
@@ -0,0 +1,20 @@
|
||||
<script>
|
||||
export let value
|
||||
export let full = false
|
||||
</script>
|
||||
|
||||
<style>
|
||||
input {
|
||||
outline: none;
|
||||
border: 3px solid hsl(0, 0%, 0%);
|
||||
border-radius: 1em;
|
||||
font-size: inherit;
|
||||
padding: 0.25em 1em;
|
||||
}
|
||||
|
||||
.full {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<input bind:value class:full {...$$restProps} />
|
Reference in New Issue
Block a user