mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-20 08:27:32 +08:00
This PR adds the shape theming API documentation using the doc generation script improvements that were added in PR #5463 . To achieve this, I added into the .vars files of the supported components the missing variables, and ran the script `scripts/apply_all_templates`. Then I ran `scripts/generate_readme component` for the components that have been added the `shape-theming.md` file, so it is seen in the actual README.md of the component. Specifically, Bottom Sheet was using the old method of documentation, and wasn't using the right generation method, so it's doc content was just copied to the right location to allow its generation to work well as well. Closes #5319
41 lines
1.4 KiB
Markdown
41 lines
1.4 KiB
Markdown
# Buttons
|
|
|
|
<!-- badges -->
|
|
|
|
Material design buttons allow users to take actions, and make choices, with a single tap. There are
|
|
many distinct button styles including text buttons, contained buttons, and floating action buttons.
|
|
|
|
<img src="assets/text.gif" alt="An animation showing a Material Design text button." width="115"> <img src="assets/outlined.gif" alt="An animation showing a Material Design outlined button." width="115"> <img src="assets/contained.gif" alt="An animation showing a Material Design contained button." width="115"> <img src="assets/fab.gif" alt="An animation showing a Material Design floating action button." width="99">
|
|
|
|
<!-- design-and-api -->
|
|
|
|
<!-- toc -->
|
|
|
|
- - -
|
|
|
|
## Overview
|
|
|
|
`MDCButton` is a highly-configurable UIButton implementation that provides support for shadow
|
|
elevation, Material Design ripples, and other stateful design APIs.
|
|
|
|
## Installation
|
|
|
|
- [Typical installation](../../../docs/component-installation.md)
|
|
|
|
## Usage
|
|
|
|
- [Typical use: themed buttons](typical-use-themed-buttons.md)
|
|
- [Typical use: floating action buttons](typical-use-floating-action-buttons.md)
|
|
- [Customizing elevation](customizing-elevation.md)
|
|
- [Customizing floating action buttons](customizing-floating-action-buttons.md)
|
|
- [Interface Builder](interface-builder.md)
|
|
|
|
## Extensions
|
|
|
|
- [Theming](theming.md)
|
|
- [Color Theming](color-theming.md)
|
|
- [Typography Theming](typography-theming.md)
|
|
- [Shape Theming](shape-theming.md)
|
|
|
|
- [Accessibility](accessibility.md)
|