Fieldset

The Fieldset component implements a container for visually-grouped elements, such as checkboxes and radio groups.


                                                        
                                                        
                                                            <template>
                                                          <w-stack direction="column" gap="large">
                                                            <w-fieldset inline label="Fieldset label">
                                                              <w-checkbox label="Checkbox 1" value="1"></w-checkbox>
                                                              <w-checkbox label="Checkbox 2" value="2"></w-checkbox>
                                                            </w-fieldset>
                                                          </w-stack>
                                                        </template>
                                                        
                                                            

Props

Name

Description

Type

Default

Values

error

Displays an error description below the fieldset

string

 

 

hint

Text displayed under the label with additional information

string

 

 

inline

If true items are displayed inline

boolean

 

 

label

Label of the fieldset

string

 

 

Slots

Name

Description

hint

Use it to provide rich content for input hint. Takes precedence over hint property.

default

Default content slot

error

Use it to provide rich content for error messages. Takes precedence over error property.