The b.File
constructor creates a file input.
Modifier | Action |
---|---|
b.Right | Move the call-to-action to the right side, align the file input to the right |
b.FullWidth | Expand the name to fill up the space |
b.Boxed | Make the input a boxed block |
b.Centered | Alight the file input to the center |
b.White | Set color to white |
b.Black | Set color to black |
b.Light | Set color to light |
b.Dark | Set color to dark |
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.OnCTA(...any) | Apply children to the <span class="file-cta"> element |
b.OnDiv(...any) | Apply children to the <div class="file"> element |
b.OnInput(...any) | Apply children to the <input> element |
string | Define the call-to-action label |
b.FileName | Define the content of the <span class="file-name"> element |
b.FileNameAutoUpdate | Define the content of the <span class="file-name"> element, which changes when a file is selected |
e.Element | Add element to the <span class="file-cta"> element |
Anything else | Apply child to the <input> element |