@@ -148,6 +169,25 @@ function focus() {
{{ optionalLabel }}
+
+
+
+
+
+
+
+
-const template = ''
+const template = ''
export const Default: Story = {
render: (args) => ({
@@ -96,10 +100,10 @@ export const Password: Story = {
},
template: template
}),
- args: { isPassword: true, label: 'Enter password', placeholder: '' }
+ args: { isPassword: true, label: 'Enter password', placeholder: 'Current password' }
}
-const typeNumberTemplate = ''
+const typeNumberTemplate = ''
export const TypeNumber: Story = {
render: (args) => ({
@@ -113,7 +117,7 @@ export const TypeNumber: Story = {
}
const templateWithTooltip =
- '\
+ '\
\
\
Tooltip\
@@ -131,3 +135,48 @@ export const WithTooltip: Story = {
}),
args: {}
}
+
+const templateWithPrefix = `
+
+
+
+ `
+
+export const WithPrefix: Story = {
+ render: (args) => ({
+ components: { NeTextInput, FontAwesomeIcon },
+ setup() {
+ return { args, faEnvelope }
+ },
+ template: templateWithPrefix
+ }),
+ args: {}
+}
+
+const templateWithSuffix = `
+
+
+
+ `
+
+export const WithSuffix: Story = {
+ render: (args) => ({
+ components: { NeTextInput, FontAwesomeIcon },
+ setup() {
+ return { args, faDollarSign }
+ },
+ template: templateWithSuffix
+ }),
+ args: {}
+}
+
+export const Search: Story = {
+ render: (args) => ({
+ components: { NeTextInput },
+ setup() {
+ return { args }
+ },
+ template: template
+ }),
+ args: { isSearch: true }
+}