Skip to content

Commit aff7718

Browse files
authored
chore: create new tags
1 parent 18a72bc commit aff7718

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/README-porting-from-bslib.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ Python style guide preferences:
525525
Key patterns:
526526
- `Tag` objects are mutable by default, use `copy.copy()` if you need to modify
527527
- Use `.add_class()`, `.add_style()`, `.attrs` to add CSS classes, styles, and HTML attributes
528+
- Create new tags with `ui.tags` and add attributes and children directly, e.g. `ui.tags.div(class_="fw-bold", ...)`
528529
- Use `css()` helper for inline styles
529530
- Tag children can be strings, Tags, TagLists, or None
530531

0 commit comments

Comments
 (0)