Style of controls #275
Answered
by
Akryum
Steellgold
asked this question in
Q&A
Style of controls
#275
-
Hey ! I would like to know if it is normal that it is not the same style of boxes in my local story and the demo version on the site Histoire (Link): My code: <script lang="ts">
import Alert from "./alert.svelte";
export let Hst: any;
let type: "error" | "success" | "warning" | "info" = "info";
let message: string = "This is a " + type + " alert";
</script>
<Hst.Story title="Alert">
<svelte:fragment slot="controls">
Message: <input type="text" bind:value={message}>
<br>
Type: <select bind:value={type}>
<option value="error">Error</option>
<option value="success">Success</option>
<option value="warning">Warning</option>
<option value="info">Info</option>
</select>
</svelte:fragment>
<Alert type={type} message={message} />
</Hst.Story> |
Beta Was this translation helpful? Give feedback.
Answered by
Akryum
Aug 31, 2022
Replies: 1 comment
-
You are using HTML controls so it's up to you to style them. If you want, you can also use the builtin controls like in the examples. The list of the controls is here. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Steellgold
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are using HTML controls so it's up to you to style them. If you want, you can also use the builtin controls like in the examples. The list of the controls is here.