You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/docs/content/components/dropdown.mdx
+5-10Lines changed: 5 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@ other_frameworks: dropdown
10
10
import {
11
11
CButton,
12
12
CButtonGroup,
13
-
CCallout,
14
13
CCollapse,
15
14
CContainer,
16
15
CDropdown,
@@ -244,13 +243,9 @@ And putting it to use in a navbar:
244
243
245
244
## Directions
246
245
247
-
<CCalloutcolor="info">
248
-
<h4>RTL</h4>
249
-
<p>
250
-
Directions are mirrored when using CoreUI in RTL, meaning `.dropstart` will appear on the right
251
-
side.
252
-
</p>
253
-
</CCallout>
246
+
<Calloutcolor="info"title="RTL">
247
+
Directions are mirrored when using CoreUI in RTL, meaning `.dropstart` will appear on the right side.
248
+
</Callout>
254
249
255
250
### Centered
256
251
@@ -435,9 +430,9 @@ In the following example we use `div` instead of `<CDropdownMenu>` to show `<CDr
435
430
436
431
By default, a dropdown menu is automatically positioned 100% from the top and along the left side of its parent. Add `aligment="end"` to right align the dropdown menu.
437
432
438
-
<CCalloutcolor="info">
433
+
<Calloutcolor="info">
439
434
<strong>Heads up!</strong> Dropdowns are positioned thanks to Popper.
Modals have three optional sizes, available via modifier classes to be placed on a `<CModal>`. These sizes kick in at certain breakpoints to avoid horizontal scrollbars on narrower viewports.
803
803
804
-
<table className="table">
805
-
<thead>
806
-
<tr>
807
-
<th>Size</th>
808
-
<th>Property size</th>
809
-
<th>Modal max-width</th>
810
-
</tr>
811
-
</thead>
812
-
<tbody>
813
-
<tr>
814
-
<td>Small</td>
815
-
<td>
816
-
<code>'sm'</code>
817
-
</td>
818
-
<td>
819
-
<code>300px</code>
820
-
</td>
821
-
</tr>
822
-
<tr>
823
-
<td>Default</td>
824
-
<td className="text-medium-emphasis">None</td>
825
-
<td>
826
-
<code>500px</code>
827
-
</td>
828
-
</tr>
829
-
<tr>
830
-
<td>Large</td>
831
-
<td>
832
-
<code>'lg'</code>
833
-
</td>
834
-
<td>
835
-
<code>800px</code>
836
-
</td>
837
-
</tr>
838
-
<tr>
839
-
<td>Extra large</td>
840
-
<td>
841
-
<code>'xl'</code>
842
-
</td>
843
-
<td>
844
-
<code>1140px</code>
845
-
</td>
846
-
</tr>
847
-
</tbody>
848
-
</table>
804
+
| Size | Property size | Modal max-width |
805
+
| --- | --- | --- |
806
+
| Small | `'sm'` | `300px` |
807
+
| Default | None | `500px` |
808
+
| Large | `'lg'` | `800px` |
809
+
| Extra large | `'xl'` | `1140px` |
849
810
850
811
export const OptionalSizesExample = () => {
851
812
const [visibleXL, setVisibleXL] = useState(false)
@@ -917,62 +878,14 @@ return (
917
878
918
879
Another override is the option to pop up a React modal component that covers the user viewport, available via property `fullscrean`.
0 commit comments