Skip to content

Latest commit

 

History

History
97 lines (57 loc) · 2.67 KB

button.md

File metadata and controls

97 lines (57 loc) · 2.67 KB
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.

Basic Usage

import Basic from '@site/static/usage/v7/button/basic/index.md';

Expand

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';

Shape

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';

Fill

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';

Size

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';

Icons

import Icons from '@site/static/usage/v7/button/icons/index.md';

Theming

Colors

import Colors from '@site/static/usage/v7/button/theming/colors/index.md';

CSS Custom Properties

import CSSProps from '@site/static/usage/v7/button/theming/css-properties/index.md';

Properties

Events

Methods

CSS Shadow Parts

CSS Custom Properties

Slots