Sha256: 4a47e5a16903f8305fbd7211f1d88a59ca15b48bf4c7b0439c0c76e9e646322f
Contents?: true
Size: 1.55 KB
Versions: 1262
Compression:
Stored size: 1.55 KB
Contents
### Props | Name | Type | Description | Default | Values | | --- | ----------- | --------- | --------- | --------- | | **Full Width** | `Bool` | Sets Button to full width | `false` | `true` `false` | | **Variant** | `PBButtonVariant` | Changes the color of the Button | ` .primary` | `.primary` `.secondary` `.link` `.disabled` | | **Size** | `Size` | Adjusts Button size | `.medium` | `.small` `.medium` `.large` | | **Shape** | `Shape` | Changes the shape of the Button | `.primary` | `.primary` `.circle` | | **Title** | `String` | Sets Button text | `nil` | | | **Icon** | `PBIcon` | Adds an icon to the Button | `nil` | | | **Icon Position** | `IconPosition` | Adjusts the icon's position | `.left` | `.left` `.right` | | **Action** | `(() -> Void)` | Adds an action for the Button to perform | `{}` | | ### Reaction Button Props | Name | Type | Description | Default | Values | | --- | ----------- | --------- | --------- | --------- | | **count** | `Int` | Tracks number of times a reaction button has been pressed | `0` | | | **isHighlighted** | `Bool` | Boolean for whether or not a reaction button has a highlight | ` false` | `true` `false` | | **isHovering** | `Bool` | Boolean for whether or not a mouse is hovering over the reaction button | `false` | `true` `false` | | **icon** | `String` | Allows user to use a unicode string for an emoji reaction button | | | | **pbIcon** | `PBIcon` | A PlayBook Icon option for reaction button | | | | **isInteractive** | `Bool` | Boolean for whether or not a reaction button is interactive | `false` | `true` `false` |
Version data entries
1,262 entries across 1,262 versions & 2 rubygems
Version | Path |
---|---|
playbook_ui_docs-13.15.0 | app/pb_kits/playbook/pb_button/docs/_button_props_swift.md |
playbook_ui-13.15.0 | app/pb_kits/playbook/pb_button/docs/_button_props_swift.md |