Button
Overview
Buttons are clickable elements that are used to trigger actions. They communicate calls to action to the user and allow users to interact with pages in a variety of ways. Button labels express what action will occur when the user interacts with it.

Widget API
Example
CButton(
label: 'Carbon Button',
kind: CButtonKind.danger,
icon: CIcon(CIcons.add, size: 16),
size: CButtonSize.md,
onTap: () {},
);
CButton.icon(
kind: CButtonKind.danger,
icon: CIcon(CIcons.add, size: 16),
size: CButtonSize.md,
onTap: () {},
);
Last updated
Was this helpful?