free-astro-components 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
import '../css/main.css'
|
|
2
3
|
import Icon from './Icon.astro'
|
|
3
4
|
|
|
4
5
|
interface Props {
|
|
@@ -45,7 +46,7 @@ const inputClasses = ['ac-input', statusClasses].filter(Boolean).join(' ')
|
|
|
45
46
|
{...props}
|
|
46
47
|
/>
|
|
47
48
|
{
|
|
48
|
-
icon &&
|
|
49
|
+
icon && props.type !== 'password' && (
|
|
49
50
|
<Icon icon={icon} class="ac-input-icon ac-input-icon--right" />
|
|
50
51
|
)
|
|
51
52
|
}
|
package/src/pages/index.astro
CHANGED
|
@@ -73,6 +73,12 @@ import Input from '../components/Input.astro'
|
|
|
73
73
|
placeholder="Escribe tu contraseña"
|
|
74
74
|
helperText="Helper text"
|
|
75
75
|
/>
|
|
76
|
+
<Input
|
|
77
|
+
icon="star"
|
|
78
|
+
label="Input label"
|
|
79
|
+
placeholder="Input with icon"
|
|
80
|
+
helperText="Helper text"
|
|
81
|
+
/>
|
|
76
82
|
</div>
|
|
77
83
|
</div>
|
|
78
84
|
</main>
|