Pull names of required props from the props object. Parameters ---------- props: dict Returns ------- list List of prop names (str) that are required for the Component
(props)
| 345 | |
| 346 | |
| 347 | def required_props(props): |
| 348 | """Pull names of required props from the props object. |
| 349 | Parameters |
| 350 | ---------- |
| 351 | props: dict |
| 352 | Returns |
| 353 | ------- |
| 354 | list |
| 355 | List of prop names (str) that are required for the Component |
| 356 | """ |
| 357 | return [prop_name for prop_name, prop in list(props.items()) if prop["required"]] |
| 358 | |
| 359 | |
| 360 | def create_docstring( |
no outgoing calls
no test coverage detected
searching dependent graphs…