Most of the time, the length of the buttons is dynamic according to the displayed text. Exceptionally, it will be constrained by the layout, as shown here.
The button component comes in 3 sizes: Small, Medium and Large.
The padding, font size and height vary depending on the size of the component.
The padding, font size, height and icon size vary depending on the size of the component.
Font sizes change only according to the button size chosen and are the same on all devices. For more details on font sizes, please refer to this table.
Below, the Shape atom applied to the button with the types Sharp / Rounded / Round:
By default, the Border Atom value is 1px when the Outline option is enabled::
For more information on the property: Shadow atom section.
Do / Don't
|・Text + Border
|・Text + Border + Drop Shadow
|・Text + Background
|・Text + Background + Border
|・Text + Background + Drop Shadow
|・Text + Background + Border +Drop Shadow
Whether the text is short or long, the button will take up all 4 columns of the page.
Tablet & Web
Even with a very short text, the button will take up at least 2 columns :
If the length of a button exceeds 2 columns, the largest button is used:
Mobile / Tablet / Web
Even with a very short text, the button will take up at least 2 columns:
In case of a long text, we cut the word by using ellipsis:
Depending on the device, the layout of a button associated with a Text Field may vary:
On Mobile, the 2 components are one on top of the other because of the lack of space. The button takes up the whole width of the page:
On Tablet and Web, if the 2 components are one on top of the other the button will have its minimum length. If they are on the same line, the Text Field takes the space left by the button:
1 button: center alignment
2 buttons: right alignment
If the button is in a footer, the Top and Bottom paddings around the button will be 8px: