انتقل إلى المحتوى
uiify

Fieldset

A semantic group of related form controls named by a legend.

المتصفحات
Chrome 123+Firefox 121+Safari 17.5+
الفئة
0
ميزانية التخطيط القسري
0 ms
ميزانية axe
0
متوافق مع SSR
نعم
العقد المنشور
بيئة الاختبار

المختبر

Fieldset / Legend

Default

Contact preferences

أمثلة

Grouped preferences

Use the first-child legend to name the group and keep a native label on each control.

Fieldset / Legend

Default

Contact preferences
import { Checkbox, Fieldset, FieldsetLegend } from "@gunkin/uiify";

export default function Example() {
  return (
    <Fieldset>
      <FieldsetLegend>Contact preferences</FieldsetLegend>
      <Checkbox id="contact-email" label="Email" name="contact" value="email" />
      <Checkbox id="contact-sms" label="Text message" name="contact" value="sms" />
    </Fieldset>
  );
}

API

Fieldset

الخاصيةالنوعافتراضيالوصف
childrenReactNode—Grouped controls and a first-child FieldsetLegend.
className / style / ref / native fieldset propsnative fieldset props—Native fieldset props, styles, events, and ref are forwarded.
renderReactElement | ((props, state) => ReactElement)—استبدل العنصر المعروض مع الحفاظ على توصيلات السلوك وإمكانية الوصول.

FieldsetLegend

الخاصيةالنوعافتراضيالوصف
childrenReactNode—Visible group name rendered as the native legend.
renderReactElement | ((props, state) => ReactElement)—استبدل العنصر المعروض مع الحفاظ على توصيلات السلوك وإمكانية الوصول.

لوحة المفاتيح

المفتاحالإجراء

إمكانية الوصول

Fieldset and Legend render native fieldset and legend elements. Put FieldsetLegend first to name the group; each contained control still needs its own label. No synthetic group role or hidden legend is added.

نقاط التنسيق

data-uiify-fieldsetdata-part="root|legend"
تُرجمت هذه الصفحة آليًا ولم تُراجع بعد.