mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01:05 +00:00
feat(aspect-ratio): add AspectRatio component
This commit is contained in:
parent
ba78105c10
commit
3dfbd6dfc9
6 changed files with 117 additions and 1 deletions
|
@ -1,11 +1,12 @@
|
|||
# Component Index
|
||||
|
||||
> 147 components exported from carbon-components-svelte 0.16.0
|
||||
> 148 components exported from carbon-components-svelte 0.16.0
|
||||
|
||||
- Accordion
|
||||
- [AccordionSkeleton](#accordionskeleton)
|
||||
- [Accordion](#accordion)
|
||||
- [AccordionItem](#accordionitem)
|
||||
- [AspectRatio](#aspectratio)
|
||||
- Breadcrumb
|
||||
- [BreadcrumbSkeleton](#breadcrumbskeleton)
|
||||
- [Breadcrumb](#breadcrumb)
|
||||
|
@ -289,6 +290,34 @@ No dispatched events.
|
|||
|
||||
---
|
||||
|
||||
## AspectRatio
|
||||
|
||||
### Import path
|
||||
|
||||
```js
|
||||
import { AspectRatio } from "carbon-components-svelte";
|
||||
```
|
||||
|
||||
### Props
|
||||
|
||||
| Prop name | Type | Default value |
|
||||
| :-------- | :------------------------------------------------------------------------------------------------- | :------------ |
|
||||
| ratio | <code>"2x1" | "16x9" | "4x3" | "1x1" | "3x4" | "9x16" | "1x2"</code> | "2x1" |
|
||||
|
||||
### Slots
|
||||
|
||||
- `<slot>...</slot>`
|
||||
|
||||
### Forwarded events
|
||||
|
||||
No forwarded events.
|
||||
|
||||
### Dispatched events
|
||||
|
||||
No dispatched events.
|
||||
|
||||
---
|
||||
|
||||
## Breadcrumb
|
||||
|
||||
### Import path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue