Note that some of Bootstrap v4's component styles have relative positioning defined (e.g. Laborum consequat non elit enim exercitation cillum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Note that this requires that the ancestor element that is to be obscured to have relative positioning (either via the utility class 'position-relative', or CSS style 'position: relative '). Use the no-wrap prop to disable rendering of the wrapping (and ignore the default slot). In some cases you may want to obscure a parent container. Non-wrapping modeīy default, wraps the content of the default slot. You can also use the width utility classes or CSS styles to control the width of the overlay's wrapping container element. When wrapping an inline or inline-block element, you will need to add the class d-inline-block (e.g. Incididunt ut labore et dolore magna aliqua. The following scope properties are available to the overlay slot: Focus the show button when the overlay is removed this.$() Focus the cancel button when the overlay is showing this.$() 'right' for rounding only the two right corners.'left' for rounding only the two left corners.'bottom' for rounding only the bottom two corners.'top' for rounding only the top two corners.'circle' for circular (or oval) rounding.false (the default) applies no rounding to the backdrop overlay.true (or the empty string '') to apply default (medium) rounding.If the content you are wrapping has rounded corners, you can use the rounded prop to apply rounding to the overlay's corners to match the obscured content's rounded corners. spinner-small: Set to true to render a small size spinner.īy default, the overlay backdrop has square corners.Default is null which inherits the current font color. spinner-variant: Variant theme color for the spinner.spinner-type: Currently supported values are 'border' (the default) or 'grow'.You can control the appearance of the spinner via the following props: The default overlay content is a of type 'border'. You can disable the fade transition via adding the no-fade prop to. Blurring requires that the opacity level be relatively high for the effect to be visible.īy default, the overlay uses Bootstrap's fade transition when showing or hiding.Background blurring is not available on some browsers (e.g.When a value is provided for bg-color, the variant prop value is ignored. Ut enim ad minim veniam, quis nostrudĮxercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.Īs an alternative to the variant prop, you can specify a CSS color string value via the bg-color prop. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor And background blurring can be controlled via the blur prop. Control the opacity of the backdrop via the opacity prop (opacity values can range from 0 to 1). The variant is translated into one of Bootstrap's background variant utility classes. You can control the backdrop background color via the variant prop. There are many options available for styling the overlay, and for providing custom content within the overlay.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |