Action Group
The action group component should be used when you have a set of related actions or options that need to be grouped together within a limited space.
Set the appearance
attribute to change the action-group's appearance.
<!-- Feel free to edit the code below. The live preview will update as you make changes. --> <p>fieldset appearance (default)</p> <vwc-action-group appearance="fieldset"> <vwc-button label="edit"></vwc-button> <vwc-button label="copy"></vwc-button> <vwc-button label="paste"></vwc-button> <vwc-button label="submit"></vwc-button> </vwc-action-group> <p>ghost appearance</p> <vwc-action-group appearance="ghost"> <vwc-button label="edit" appearance="filled"></vwc-button> <vwc-button label="copy" appearance="filled"></vwc-button> <vwc-button label="paste" appearance="filled"></vwc-button> <vwc-button label="submit" appearance="filled"></vwc-button> </vwc-action-group>
Use the shape
attribute to set the action-group's border-radius.
When using shape, remember to also set it on any slotted elements.
<!-- Feel free to edit the code below. The live preview will update as you make changes. --> <vwc-action-group shape="pill"> <vwc-button shape="pill" label="edit"></vwc-button> <vwc-button shape="pill" label="copy"></vwc-button> <vwc-button shape="pill" label="paste"></vwc-button> <vwc-button shape="pill" label="submit"></vwc-button> </vwc-action-group>
Set the tight
attribute if no outer padding or gaps between slotted item are needed
<!-- Feel free to edit the code below. The live preview will update as you make changes. --> <vwc-action-group tight appearance="fieldset"> <vwc-audio-player class="audio" src="https://download.samplelib.com/mp3/sample-6s.mp3" > </vwc-audio-player> <vwc-button size="condensed" icon="delete-solid" aria-label="delete" class="delete" ></vwc-button> </vwc-action-group> <style> .audio { min-inline-size: 250px; } .delete { margin-inline-end: 8px; } </style>