Skip to content

puepy.Prop

Class representing a prop for a component.

Attributes:

Name Type Description
name str

The name of the property.

description str

The description of the property (optional).

type type

The data type of the property (default: str).

default_value

The default value of the property (optional).

Source code in puepy/core.py
class Prop:
    """
    Class representing a prop for a component.

    Attributes:
        name (str): The name of the property.
        description (str): The description of the property (optional).
        type (type): The data type of the property (default: str).
        default_value: The default value of the property (optional).
    """

    def __init__(self, name, description=None, type=str, default_value=None):
        self.name = name
        self.description = description
        self.type = type
        self.default_value = default_value