title |
---|
ion-button |
import Props from '@site/static/auto-generated/button/props.md'; import Events from '@site/static/auto-generated/button/events.md'; import Methods from '@site/static/auto-generated/button/methods.md'; import Parts from '@site/static/auto-generated/button/parts.md'; import CustomProps from '@site/static/auto-generated/button/custom-props.md'; import Slots from '@site/static/auto-generated/button/slots.md';
<title>ion-button: Design and Style Buttons with Custom CSS Properties</title>import EncapsulationPill from '@components/page/api/EncapsulationPill';
Buttons provide a clickable element, which can be used in forms, or anywhere that needs simple, standard button functionality. They may display text, icons, or both. Buttons can be styled with several attributes to look a specific way.
import Basic from '@site/static/usage/v7/button/basic/index.md';
This property lets you specify how wide the button should be. By default, buttons have display: inline-block
, but setting this property will change the button to a full-width element with display: block
.
import Expand from '@site/static/usage/v7/button/expand/index.md';
This property lets you specify the shape of the button. By default, buttons are rectangular with a small border radius, but setting this to "round"
will change the button to a rounded element.
import Shape from '@site/static/usage/v7/button/shape/index.md';
This property determines the background and border color of the button. By default, buttons have a solid background unless the button is inside of a toolbar, in which case it has a transparent background.
import Fill from '@site/static/usage/v7/button/fill/index.md';
This property specifies the size of the button. Setting this property will change the height and padding of a button.
import Size from '@site/static/usage/v7/button/size/index.md';
import Icons from '@site/static/usage/v7/button/icons/index.md';
import Colors from '@site/static/usage/v7/button/theming/colors/index.md';
import CSSProps from '@site/static/usage/v7/button/theming/css-properties/index.md';