Skip to content

Commit e66c3c9

Browse files
committed
docs: update documentation
1 parent 5a3bb25 commit e66c3c9

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

src/components/card/CCard.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ Use the `CRow` component and set `xs|sm|md|lg|xl|xxl}={{ cols: * }}` property to
639639
</CRow>
640640
</Playground>
641641

642-
Change it to `md={{ cols: 3}` and you'll see the fourth card wrap.
642+
Change it to `md={{ cols: 3}}` and you'll see the fourth card wrap.
643643

644644
<Playground>
645645
<CRow xs={{ cols: 1, gutter: 4}} md={{ cols: 3 }}>

src/components/dropdown/CDropdown.mdx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { Playground, Props } from 'docz'
1010
import { CCallout } from '../callout/CCallout'
1111

1212
import { CButton } from '../button/CButton.tsx'
13+
import { CButtonGroup } from '../button-group/CButtonGroup.tsx'
1314
import { CDropdown } from './CDropdown.tsx'
1415
import { CDropdownDivider } from './CDropdownDivider.tsx'
1516
import { CDropdownHeader } from './CDropdownHeader.tsx'
@@ -286,17 +287,19 @@ Trigger dropdown menus at the left of the elements by adding `direction="dropsta
286287
</CDropdownMenu>
287288
</CDropdown>
288289

289-
<CDropdown variant="btn-group" direction="dropstart">
290-
<CDropdownToggle color="secondary" split/>
290+
<CButtonGroup>
291+
<CDropdown variant="btn-group" direction="dropstart">
292+
<CDropdownToggle color="secondary" split/>
293+
<CDropdownMenu>
294+
<CDropdownItem href="#">Action</CDropdownItem>
295+
<CDropdownItem href="#">Another action</CDropdownItem>
296+
<CDropdownItem href="#">Something else here</CDropdownItem>
297+
<CDropdownDivider/>
298+
<CDropdownItem href="#">Separated link</CDropdownItem>
299+
</CDropdownMenu>
300+
</CDropdown>
291301
<CButton color="secondary" >Small split button</CButton>
292-
<CDropdownMenu>
293-
<CDropdownItem href="#">Action</CDropdownItem>
294-
<CDropdownItem href="#">Another action</CDropdownItem>
295-
<CDropdownItem href="#">Something else here</CDropdownItem>
296-
<CDropdownDivider/>
297-
<CDropdownItem href="#">Separated link</CDropdownItem>
298-
</CDropdownMenu>
299-
</CDropdown>
302+
</CButtonGroup>
300303
</Playground>
301304

302305
## Menu items

src/components/form/CInputGroup.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Multiple add-ons are supported and can be mixed with checkbox and radio input ve
178178

179179
<Playground>
180180
<CInputGroup className="mb-3">
181-
<CDropdown>
181+
<CDropdown variant="input-group">
182182
<CDropdownToggle color="secondary" variant="outline">Dropdown</CDropdownToggle>
183183
<CDropdownMenu>
184184
<CDropdownItem href="#">Action</CDropdownItem>
@@ -193,7 +193,7 @@ Multiple add-ons are supported and can be mixed with checkbox and radio input ve
193193

194194
<CInputGroup className="mb-3">
195195
<CFormControl aria-label="Text input with dropdown button"/>
196-
<CDropdown alignment="end">
196+
<CDropdown alignment="end" variant="input-group">
197197
<CDropdownToggle color="secondary" variant="outline">Dropdown</CDropdownToggle>
198198
<CDropdownMenu>
199199
<CDropdownItem href="#">Action</CDropdownItem>
@@ -206,7 +206,7 @@ Multiple add-ons are supported and can be mixed with checkbox and radio input ve
206206
</CInputGroup>
207207

208208
<CInputGroup>
209-
<CDropdown>
209+
<CDropdown variant="input-group">
210210
<CDropdownToggle color="secondary" variant="outline">Dropdown</CDropdownToggle>
211211
<CDropdownMenu>
212212
<CDropdownItem href="#">Action</CDropdownItem>
@@ -217,7 +217,7 @@ Multiple add-ons are supported and can be mixed with checkbox and radio input ve
217217
</CDropdownMenu>
218218
</CDropdown>
219219
<CFormControl aria-label="Text input with 2 dropdown buttons"/>
220-
<CDropdown alignment="end">
220+
<CDropdown alignment="end" variant="input-group">
221221
<CDropdownToggle color="secondary" variant="outline">Dropdown</CDropdownToggle>
222222
<CDropdownMenu>
223223
<CDropdownItem href="#">Action</CDropdownItem>
@@ -234,7 +234,7 @@ Multiple add-ons are supported and can be mixed with checkbox and radio input ve
234234

235235
<Playground>
236236
<CInputGroup className="mb-3">
237-
<CDropdown>
237+
<CDropdown variant="input-group">
238238
<CButton type="button" color="secondary" variant="outline">Action</CButton>
239239
<CDropdownToggle color="secondary" variant="outline" split/>
240240
<CDropdownMenu>
@@ -250,7 +250,7 @@ Multiple add-ons are supported and can be mixed with checkbox and radio input ve
250250

251251
<CInputGroup>
252252
<CFormControl aria-label="Text input with segmented dropdown button"/>
253-
<CDropdown alignment="end">
253+
<CDropdown alignment="end" variant="input-group">
254254
<CButton type="button" color="secondary" variant="outline">Action</CButton>
255255
<CDropdownToggle color="secondary" variant="outline" split/>
256256
<CDropdownMenu>

0 commit comments

Comments
 (0)