majorimi / blazor-components

Components collection and extensions for Blazor applications.
MIT License
327 stars 59 forks source link

Bootstrap 5 #76

Closed mxmissile closed 3 years ago

mxmissile commented 3 years ago

Does this work with Bootstrap 5?

majorimi commented 3 years ago

Hi @mxmissile, Good question. Short answer is: YES.

Long answer: it depends which component are you using? There are many components/extensions in this collection. I would say these are the categories from Bootstrap point of view:

If you check the demo app it is using Bootstrap 4 (v5 is the same concept). Please check the Demo app code. and shared Components demo pages.

Index.html has: <link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />

And here is a short example of TypeaheadInput component used in Bootstrap Grid system with row pb-2, col-12 col-lg-8 col-xl-5 and form-control w-100 etc.:

    <div class="row pb-2">
        <div class="col-12 col-lg-8 col-xl-5">
            <TypeaheadInput id="in1" class="form-control w-100" placeholder="@("Please type in at least: " + _minCharsLength + " char(s)")"
            </TypeaheadInput>
        </div>
    </div>

Hope this answers your question.

majorimi commented 3 years ago

@mxmissile what this answering your question?

mxmissile commented 3 years ago

Yes, thank you for reminding me.