material-components-vue
Version:
Material Design components for Vue.js
91 lines (60 loc) • 1.58 kB
Markdown
# Typography
## Markup
```html
<m-typography>
<m-typo-headline :level="1">Headline</m-typo-headline>
<m-typo-overline>Overline</m-typo-overline>
<m-typo-subheading :level="1">Subheading 1</m-typo-subheading>
<m-typo-body :level="2">Body 2</m-typo-body>
<m-typo-caption>Caption</m-typo-caption>
<m-typo-button>Button</m-typo-button>
</m-typography>
```
## Slots
| Slot | Description |
|------|-------------|
| default | typography content |
# Body
## Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| level | Number | - | body level could be 1 or 2 |
## Slots
| Slot | Description |
|------|-------------|
| default | content |
# Button
## Slots
| Slot | Description |
|------|-------------|
| default | content |
# Caption
## Slots
| Slot | Description |
|------|-------------|
| default | content |
# Headline
## Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| level | Boolean | false | headline level between 1 and 6 |
## Slots
| Slot | Description |
|------|-------------|
| default | content |
# Subheading
## Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| level | Number | - | subheading level could be 1 or 2 |
## Slots
| Slot | Description |
|------|-------------|
| default | content |
# Overline
## Slots
| Slot | Description |
|------|-------------|
| default | content |
## Reference
- https://github.com/material-components/material-components-web/tree/master/packages/mdc-toolbar