Skip to content

Commit caeb01d

Browse files
committed
Docs for narrow buttons
1 parent 7632d37 commit caeb01d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/official-site/sqlpage/migrations/18_button.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
2020
('space_after', 'Whether there should be extra space to the right of the button. In a line of buttons, this will put the buttons before this one on the left, and the ones after on the right.', 'BOOLEAN', FALSE, TRUE),
2121
('icon_after', 'Name of an icon to display after the text in the button', 'ICON', FALSE, TRUE),
2222
('icon', 'Name of an icon to be displayed on the left side of the button.', 'ICON', FALSE, TRUE),
23+
('narrow', 'Whether to trim horizontal padding.', 'BOOLEAN', FALSE, TRUE),
2324
('form', 'Identifier (id) of the form to which the button should submit.', 'TEXT', FALSE, TRUE),
2425
('rel', '"nofollow" when the contents of the target link are not endorsed, "noopener" when the target is not trusted, and "noreferrer" to hide where the user came from when they open the link.', 'TEXT', FALSE, TRUE),
2526
('target', '"_blank" to open the link in a new tab, "_self" to open it in the same tab, "_parent" to open it in the parent frame, or "_top" to open it in the full body of the window.', 'TEXT', FALSE, TRUE),
@@ -49,7 +50,8 @@ INSERT INTO example(component, description, properties) VALUES
4950
{"link":"#", "color":"success", "title":"Success"},
5051
{"link":"#", "color":"info", "title":"Info"},
5152
{"link":"#", "color":"dark", "title":"Dark"},
52-
{"link":"#", "color":"warning", "title":"Warning"}]')
53+
{"link":"#", "color":"warning", "title":"Warning"},
54+
{"link":"#", "color":"danger", "title":"Narrow", "narrow":true}]')
5355
);
5456

5557
INSERT INTO example(component, description, properties) VALUES

0 commit comments

Comments
 (0)