The b.InputText
constructor creates a text input. The b.InputPassword
constructor creates a password input. The b.InputEmail
constructor creates an email input. The b.InputTel
constructor creates a telephone number input.
Modifier | Action |
---|
b.Rounded | Make the input rounded |
b.Hovered | Apply the hovered style |
b.Focused | Apply the focused style |
b.Loading | Add a loading spinner to the right of the input |
b.Static | Remove specific styling but maintain vertical spacing |
b.Disabled | Disable the input (apply the disabled attribute) |
e.ReadOnly() | Read only input |
e.Placeholder(string) | Add a placeholder to the input |
b.Primary | Set color to primary |
b.Link | Set color to link |
b.Info | Set color to info |
b.Success | Set color to success |
b.Warning | Set color to warning |
b.Danger | Set color to danger |
b.Small | Set size to small |
b.Normal | Set size to normal |
b.Medium | Set size to medium |
b.Large | Set size to large |
Child | Action |
---|
b.OnInput(...any) | Apply children to the <input> element - only useful with the b.Disabled modifier if you want to apply the is-disabled class to the input instead of using the disabled attribute |