pub fn DemoBox(props: DemoBoxProps) -> impl IntoViewExpand description
A themed dashed-border box for preview demos and primitive stubs awaiting implementation.
Use inside layout previews to show container bounds, or as the body of a gap stub with label=placeholder_label("ComponentName").
ยงOptional Props
- label:
impl Into<MaybeProp<String>>- Optional label text when no children are provided.
- class:
impl Into<MaybeProp<String>>- Extra CSS class names merged onto the root element.
- width:
impl Into<MaybeProp<String>>- CSS width value (for example
280pxor100%). Ignored whenfillis true.
- CSS width value (for example
- height:
impl Into<MaybeProp<String>>- CSS height value (for example
160pxor100%). Ignored whenfillis true.
- CSS height value (for example
- padding:
impl Into<MaybeProp<SpacingInset>>- Theme-aware padding; defaults to medium inset on all sides.
- fill:
bool- When true, sets
width: 100%; height: 100%to fill the parent container.
- When true, sets
- data_testid:
impl Into<MaybeProp<String>>data-testidattribute for e2e tests.
- children:
Children