Add List component

This commit is contained in:
Marshall Bowers 2023-10-04 18:25:43 -04:00
parent 332f3f5617
commit 77feecc623
10 changed files with 777 additions and 12 deletions

View file

@ -6,11 +6,11 @@ use crate::ui::{Label, Panel};
use crate::story::Story;
#[derive(Element)]
pub struct PanelStory<S: 'static + Send + Sync> {
pub struct PanelStory<S: 'static + Send + Sync + Clone> {
state_type: PhantomData<S>,
}
impl<S: 'static + Send + Sync> PanelStory<S> {
impl<S: 'static + Send + Sync + Clone> PanelStory<S> {
pub fn new() -> Self {
Self {
state_type: PhantomData,