fixed up service editor
This commit is contained in:
1 parent
029df7932e
commit
5bef962977
8 files changed
+107
-44
No files matched your search
@@ -4,25 +4,33 @@ import { Page } from "components/Page";
|
||||
import { SearchItem } from "./extras";
|
||||
|
||||
export default {
|
||||
title: 'Inputs/Extras/SearchItem',
|
||||
title: "Inputs/Extras/SearchItem",
|
||||
component: SearchItem,
|
||||
parameters: { actions: { argTypesRegex: '^on.*' } },
|
||||
argTypes: {}
|
||||
parameters: { actions: { argTypesRegex: "^on.*" } },
|
||||
argTypes: {},
|
||||
} as ComponentMeta<typeof SearchItem>;
|
||||
|
||||
const Template: ComponentStory<typeof SearchItem> = (args) => {
|
||||
return (
|
||||
<Page>
|
||||
<div
|
||||
style={{
|
||||
width: "15em",
|
||||
height: "3em",
|
||||
border: "1px solid var(--primary-accent)",
|
||||
}}
|
||||
>
|
||||
<SearchItem {...args} />
|
||||
</div>
|
||||
</Page>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
const Template: ComponentStory<typeof SearchItem> = args => {
|
||||
return <Page>
|
||||
<SearchItem {...args} />
|
||||
</Page>
|
||||
|
||||
}
|
||||
|
||||
export const Simple = Template.bind({})
|
||||
export const Simple = Template.bind({});
|
||||
Simple.args = {
|
||||
id: "sensor.humidity_main_bedroom",
|
||||
label: 'Main Bedroom Humidity',
|
||||
label: "Main Bedroom Humidity",
|
||||
searchTerm: "bedroom",
|
||||
listProps: {},
|
||||
} as any
|
||||
onlyShowLabel: false,
|
||||
};
|
||||
Reference in new issue
Block a user